Skip to content

Commit

Permalink
chore(deps): remove rimraf (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored Feb 8, 2023
1 parent abc4e7c commit 20721b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 2 additions & 3 deletions test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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([
Expand Down Expand Up @@ -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 }))

0 comments on commit 20721b4

Please sign in to comment.