Skip to content

Commit e29e4de

Browse files
Dropped the dependency on "mkdirp", since recursive directory creation is built-in on Node 10
1 parent 3eec4f8 commit e29e4de

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
"del": "^5.1.0",
6161
"eslint": "^6.8.0",
6262
"eslint-config-modular": "^7.0.1",
63-
"mkdirp": "^0.5.1",
64-
"mocha": "^6.2.2",
6563
"npm-check": "^5.9.0",
6664
"nyc": "^15.0.0",
6765
"shx": "^0.3.2",

test/utils/files.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const fs = require("fs");
44
const path = require("path");
5-
const mkdirp = require("mkdirp");
65

76
const tempDir = path.resolve(__dirname, "..", ".tmp");
87

@@ -21,7 +20,7 @@ const files = module.exports = {
2120
let filePath = path.join(tempDir, name);
2221
let dirPath = path.dirname(filePath);
2322

24-
mkdirp.sync(dirPath);
23+
fs.mkdirSync(dirPath, { recursive: true });
2524
fs.writeFileSync(filePath, contents);
2625
},
2726

0 commit comments

Comments
 (0)