From c73010d3756b7bd549423e6bd71d87a22a6bf5fa Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Mon, 11 Mar 2024 16:57:13 +0200 Subject: [PATCH] refactor: remove unnecessary dependencies --- index.js | 5 ++--- package.json | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 7729aaf..4fc42e2 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,6 @@ var os = require('os') var path = require('path') var fs = require('fs') var abi = require('node-abi') -var mkdirp = require('mkdirp-classic') var tar = require('tar-fs') var pump = require('pump') var npmRunPath = require('npm-run-path') @@ -68,7 +67,7 @@ function prebuildify (opts, cb) { addName(opts, function (err) { if (err) return cb(err) - mkdirp(opts.builds, function (err) { + fs.mkdir(opts.builds, { recursive: true }, function (err) { if (err) return cb(err) loop(opts, function (err) { if (err) return cb(err) @@ -226,7 +225,7 @@ function build (target, runtime, opts, cb) { args.push('--release') } - mkdirp(cache, function () { + fs.mkdir(cache, { recursive: true }, function () { var child = proc.spawn(opts.nodeGyp, args, { cwd: opts.cwd, env: opts.env, diff --git a/package.json b/package.json index cbbc865..5c6fffc 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "main": "index.js", "dependencies": { "minimist": "^1.2.8", - "mkdirp-classic": "^0.5.3", "node-abi": "^3.56.0", "npm-run-path": "^4.0.1", "pump": "^3.0.0",