Skip to content

Commit

Permalink
chore: remove mkdirp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jun 26, 2024
1 parent 5e208c5 commit 996c598
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"dependencies": {
"fast-glob": "^3.3.2",
"minimatch": "^9.0.4",
"mkdirp": "^3.0.1",
"path-browserify": "^1.0.1"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/common/scripts/buildDeno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ commonFile.getFunctionOrThrow("isNodeJs").remove();
commonFile.getImportDeclarationOrThrow("path").remove();
commonFile.getImportDeclarationOrThrow("minimatch").remove();
commonFile.getImportDeclarationOrThrow("fast-glob").remove();
commonFile.getImportDeclarationOrThrow("mkdirp").remove();
commonFile.getImportDeclarationOrThrow("os").remove();
commonFile.getImportDeclarationOrThrow("fs").remove();
commonFile.getVariableDeclarationOrThrow("path$1").remove();
Expand Down
5 changes: 2 additions & 3 deletions packages/common/src/runtimes/NodeRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fastGlob from "fast-glob";
import * as fs from "fs";
import * as minimatch from "minimatch";
import * as mkdirp from "mkdirp";
import * as os from "os";
import * as path from "path";
import { Runtime, RuntimeFileInfo, RuntimeFileSystem, RuntimePath } from "./Runtime";
Expand Down Expand Up @@ -97,11 +96,11 @@ class NodeRuntimeFileSystem implements RuntimeFileSystem {
}

async mkdir(dirPath: string) {
await mkdirp.mkdirp(dirPath);
await fs.mkdir(dirPath, { recursive: true });
}

mkdirSync(dirPath: string) {
mkdirp.sync(dirPath);
fs.mkdirSync(dirPath, { recursive: true });
}

move(srcPath: string, destPath: string) {
Expand Down

0 comments on commit 996c598

Please sign in to comment.