Skip to content

Commit

Permalink
refactor(deps): remove mkdirp (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil42Russia authored Jan 20, 2025
1 parent 9c12481 commit 91011ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"ipfs-unixfs-importer": "9.0.10",
"json-bigint": "^1.0.0",
"meow": "^13.2.0",
"mkdirp": "^2.1.3",
"ohm-js": "^17.1.0",
"path-normalize": "^6.0.13",
"prando": "^6.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/vfs/createNodeFileSystem.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { VirtualFileSystem } from "./VirtualFileSystem";
import fs from "fs";
import path from "path";
import mkdirp from "mkdirp";

export function createNodeFileSystem(
root: string,
Expand Down Expand Up @@ -42,7 +41,7 @@ export function createNodeFileSystem(
);
}

mkdirp.sync(path.dirname(filePath));
fs.mkdirSync(path.dirname(filePath), { recursive: true });
fs.writeFileSync(filePath, content);
},
};
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4632,11 +4632,6 @@ minipass@^4.2.4:
resolved "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz"
integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==

mkdirp@^2.1.3:
version "2.1.6"
resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.6.tgz"
integrity sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==

[email protected]:
version "2.1.2"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
Expand Down

0 comments on commit 91011ab

Please sign in to comment.