From 28a700219f83f00eec1f6dd0d7d6a740c002c3ac Mon Sep 17 00:00:00 2001 From: nmccready Date: Fri, 13 Sep 2024 10:01:28 -0400 Subject: [PATCH] chore: removing del for node rm --- package.json | 1 - test/publish.test.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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) {