From 20721b459c92079917590ae9e01a5b0611e01b89 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 8 Feb 2023 09:44:39 -0700 Subject: [PATCH] chore(deps): remove rimraf (#54) --- package.json | 1 - test/integration.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 79af727..b44932b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "@npmcli/eslint-config": "^4.0.0", "@npmcli/template-oss": "4.11.3", "cmd-shim": "^6.0.0", - "rimraf": "^3.0.0", "tap": "^16.0.1" }, "scripts": { diff --git a/test/integration.js b/test/integration.js index 449207a..258f5f4 100644 --- a/test/integration.js +++ b/test/integration.js @@ -2,7 +2,6 @@ const { join, basename } = require('path') const fs = require('fs') const test = require('tap').test -const rimraf = require('rimraf') const cmdShim = require('cmd-shim') const readCmdShim = require('..') const workDir = join(__dirname, basename(__filename, '.js')) @@ -14,7 +13,7 @@ const testShimCmd = testShim + '.cmd' const testShimPowershell = testShim + '.ps1' test('setup', t => { - rimraf.sync(workDir) + fs.rmSync(workDir, { recursive: true, force: true }) fs.mkdirSync(workDir) fs.writeFileSync(testShbang + '.js', '#!/usr/bin/env node\ntrue') return Promise.all([ @@ -77,4 +76,4 @@ test('async-read-not-shim', t => test('sync-read-not-shim', async t => t.throws(() => readCmdShim.sync(__filename), { code: 'ENOTASHIM' })) -test('cleanup', async t => rimraf.sync(workDir)) +test('cleanup', async t => fs.rmSync(workDir, { recursive: true, force: true }))