diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index a166bd5e364..ddd8f4639dd 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -38,7 +38,6 @@ "copy-template-dir": "^1.4.0", "debug": "^4.1.1", "decache": "^4.6.0", - "del": "^6.0.0", "dot-prop": "^6.0.0", "dotenv": "^10.0.0", "env-paths": "^2.2.0", diff --git a/package.json b/package.json index 36be45a0d9b..4ab1d47119c 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,6 @@ "copy-template-dir": "^1.4.0", "debug": "^4.1.1", "decache": "^4.6.0", - "del": "^6.0.0", "dot-prop": "^6.0.0", "dotenv": "^10.0.0", "env-paths": "^2.2.0", diff --git a/src/lib/fs.js b/src/lib/fs.js index 54082a11693..d4418a4b19a 100644 --- a/src/lib/fs.js +++ b/src/lib/fs.js @@ -1,11 +1,10 @@ // @ts-check const { constants, - promises: { access, readFile, rm, stat }, + promises: { access, readFile, rm, rmdir, stat }, } = require('fs') const { version } = require('process') -const del = require('del') const { gte, parse } = require('semver') const NODE_VERSION = parse(version) @@ -40,7 +39,7 @@ const rmdirRecursiveAsync = async (path) => { if (gte(NODE_VERSION, '14.14.0')) { return await rm(path, { force: true, recursive: true }) } - await del(path, { force: true }) + await rmdir(path, { recursive: true }) } /**