Skip to content

Commit f6552e9

Browse files
Remove deprecated subdependencies: boolean and rimraf
1 parent e534f30 commit f6552e9

File tree

6 files changed

+26
-155
lines changed

6 files changed

+26
-155
lines changed

packages/cli-kit/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"commondir": "1.0.1",
123123
"conf": "11.0.2",
124124
"deepmerge": "4.3.1",
125-
"del": "6.1.1",
126125
"dotenv": "16.4.7",
127126
"env-paths": "3.0.0",
128127
"execa": "7.2.0",

packages/cli-kit/src/public/node/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
access as fsAccess,
4949
rename as fsRename,
5050
unlink as fsUnlink,
51+
rm as fsRm,
5152
readdir as fsReaddir,
5253
symlink as fsSymlink,
5354
} from 'fs/promises'
@@ -312,9 +313,8 @@ interface RmDirOptions {
312313
* @param options - Options to remove the directory with.
313314
*/
314315
export async function rmdir(path: string, options: RmDirOptions = {}): Promise<void> {
315-
const {default: del} = await import('del')
316316
outputDebug(outputContent`Removing directory at ${outputToken.path(path)}...`)
317-
await del(path, {force: options.force})
317+
await fsRm(path, {recursive: true, force: options.force ?? false})
318318
}
319319

320320
/**

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dependencies": {
5454
"@ast-grep/napi": "0.33.0",
5555
"esbuild": "0.27.2",
56-
"global-agent": "3.0.0"
56+
"global-agent": "4.1.2"
5757
},
5858
"devDependencies": {
5959
"@oclif/core": "4.5.3",

packages/features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@cucumber/pretty-formatter": "2.4.1",
3333
"@types/fs-extra": "^9.0.13",
3434
"fs-extra": "^9.1.0",
35-
"tempy": "^1.0.1"
35+
"tempy": "^3.1.0"
3636
},
3737
"engines": {
3838
"node": ">=20.10.0"

packages/features/steps/environment.steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {writeFile} from '../lib/fs.js'
22
import {Given, After, setDefaultTimeout} from '@cucumber/cucumber'
3-
import tempy from 'tempy'
3+
import {temporaryDirectory} from 'tempy'
44
import {rimrafSync} from 'rimraf'
55
import * as path from 'pathe'
66

@@ -12,7 +12,7 @@ if (process.env.DEBUG === '1') {
1212
}
1313

1414
Given('I have a working directory', async function () {
15-
this.temporaryDirectory = tempy.directory()
15+
this.temporaryDirectory = temporaryDirectory()
1616
const dataHomeDirectory = path.join(this.temporaryDirectory, 'XDG_DATA_HOME')
1717
const configHomeDirectory = path.join(this.temporaryDirectory, 'XDG_CONFIG_HOME')
1818
const stateHomeDirectory = path.join(this.temporaryDirectory, 'XDG_STATE_HOME')

0 commit comments

Comments
 (0)