From c0591da5d88f40270d2a1b966d47f3b0d5e16ce5 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 2 Jun 2020 14:39:18 +1000 Subject: [PATCH] fixup! deps: replace mkdirp with {recursive} mkdir --- lib/install.js | 2 +- test/test-configure-python.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/install.js b/lib/install.js index 8d428e1851..f9fa2b34bd 100644 --- a/lib/install.js +++ b/lib/install.js @@ -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) } diff --git a/test/test-configure-python.js b/test/test-configure-python.js index d08f9e5ed3..ac25f7972e 100644 --- a/test/test-configure-python.js +++ b/test/test-configure-python.js @@ -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() } } })