Skip to content

Commit

Permalink
Revert rimraf
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools committed Nov 22, 2024
1 parent f33f8a4 commit ae18690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"mutate-fs": "^2.1.1",
"nock": "^13.2.4",
"npm-registry-mock": "^1.3.2",
"rimraf": "^6.0.1",
"tap": "^16.0.1"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions test/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const fs = require('node:fs')
const http = require('node:http')
const { dirname, basename, resolve } = require('node:path')
const { mkdir } = require('node:fs/promises')
const { rmSync } = require('node:fs')
const { spawn } = require('node:child_process')
const Arborist = require('@npmcli/arborist')
const HostedGit = require('hosted-git-info')
const npa = require('npm-package-arg')
const spawnGit = require('@npmcli/git').spawn
const rimraf = require('rimraf')
const tar = require('tar')
const spawnNpm = require('../lib/util/npm.js')
const GitFetcher = require('../lib/git.js')
Expand Down Expand Up @@ -229,7 +229,7 @@ t.test('setup', { bail: true, skip: isWindows && 'posix only' }, t => {
}
daemon.stderr.on('data', onDaemonData)
// only clean up the dir once the daemon is banished
daemon.on('close', () => rimraf.sync(me))
daemon.on('close', () => rmSync(me, { recursive: true, force: true }))
})

t.test('create a repo with a submodule', () => {
Expand Down

0 comments on commit ae18690

Please sign in to comment.