Skip to content

Commit

Permalink
fixup! deps: replace mkdirp with {recursive} mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 2, 2020
1 parent 7110d1c commit c0591da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function install (fs, gyp, argv, callback) {
log.verbose(name, 'dir', dir)
log.verbose(name, 'url', libUrl)

mkdir(dir, function (err) {
fs.mkdir(dir, { recursive: true }, function (err) {
if (err) {
return done(err)
}
Expand Down
3 changes: 2 additions & 1 deletion test/test-configure-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const configure = requireInject('../lib/configure', {
openSync: function () { return 0 },
closeSync: function () { },
writeFile: function (file, data, cb) { cb() },
stat: function (file, cb) { cb(null, {}) }
stat: function (file, cb) { cb(null, {}) },
mkdir: function (dir, options, cb) { cb() }
}
})

Expand Down

0 comments on commit c0591da

Please sign in to comment.