diff --git a/package.json b/package.json index 4fbf5c7..4713e03 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "commitlint": "19", "config": "^3.2.2", "coveralls": "^3.0.4", - "del": "^7.1.0", "hook-std": "0.X", "jest": "^29.7.0", "prettier": "^1.18.2", diff --git a/test/publish.test.js b/test/publish.test.js index bc8d493..4040456 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -1,12 +1,12 @@ const os = require('os'); -const del = require('del'); const { exec } = require('child_process'); +const { rm } = require('fs/promises'); const isWindows = os.platform() === 'win32'; const cleanUp = async () => { - return del(['./tmp']); + return rm('./tmp', { recursive: true, force: true }); }; function makeTestPackage(cb) {