diff --git a/packages/common/package.json b/packages/common/package.json index c1d196bec..1d1e9d430 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -21,7 +21,6 @@ "dependencies": { "fast-glob": "^3.3.2", "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", "path-browserify": "^1.0.1" }, "devDependencies": { diff --git a/packages/common/scripts/buildDeno.ts b/packages/common/scripts/buildDeno.ts index 96e5d0caa..50435d5da 100644 --- a/packages/common/scripts/buildDeno.ts +++ b/packages/common/scripts/buildDeno.ts @@ -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(); diff --git a/packages/common/src/runtimes/NodeRuntime.ts b/packages/common/src/runtimes/NodeRuntime.ts index 53f4cc895..c1a39c98a 100644 --- a/packages/common/src/runtimes/NodeRuntime.ts +++ b/packages/common/src/runtimes/NodeRuntime.ts @@ -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"; @@ -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) {