Skip to content

Commit de54031

Browse files
committed
Require Node.js 18 and update dependencies
Fixes #38
1 parent 028ebb1 commit de54031

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 22
1314
- 20
1415
- 18
15-
- 16
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121
- run: npm install

cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ const cli = meow(`
2828
flags: {
2929
force: {
3030
type: 'boolean',
31-
alias: 'f',
31+
shortFlag: 'f',
3232
},
3333
dryRun: {
3434
type: 'boolean',
35-
alias: 'd',
35+
shortFlag: 'd',
3636
},
3737
verbose: {
3838
type: 'boolean',
39-
alias: 'v',
39+
shortFlag: 'v',
4040
},
4141
},
4242
});

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"del-cli": "./cli.js",
1616
"del": "./cli.js"
1717
},
18+
"sideEffects": false,
1819
"engines": {
19-
"node": ">=14.16"
20+
"node": ">=18"
2021
},
2122
"scripts": {
2223
"test": "xo && ava"
@@ -50,13 +51,13 @@
5051
"cross-platform"
5152
],
5253
"dependencies": {
53-
"del": "^7.1.0",
54-
"meow": "^10.1.3"
54+
"del": "^8.0.0",
55+
"meow": "^13.2.0"
5556
},
5657
"devDependencies": {
57-
"ava": "^4.3.1",
58-
"execa": "^6.1.0",
59-
"temp-write": "^5.0.0",
60-
"xo": "^0.56.0"
58+
"ava": "^6.1.3",
59+
"execa": "^9.4.0",
60+
"temp-write": "^6.0.0",
61+
"xo": "^0.59.3"
6162
}
6263
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ Benefits over `rm -rf`: Cross-platform, safer by default as it doesn't allow del
4040

4141
## Related
4242

43-
- [del](https://github.com/sindresorhus/del) - API for this module
43+
- [del](https://github.com/sindresorhus/del) - API for this package
4444
- [trash-cli](https://github.com/sindresorhus/trash-cli) - Move files and directories to the trash
4545
- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - Make directories and their parents if needed

0 commit comments

Comments
 (0)