Skip to content

Commit

Permalink
Require Node.js 18 and update dependencies
Browse files Browse the repository at this point in the history
Fixes #38
  • Loading branch information
sindresorhus committed Oct 7, 2024
1 parent 028ebb1 commit de54031
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 22
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
6 changes: 3 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ const cli = meow(`
flags: {
force: {
type: 'boolean',
alias: 'f',
shortFlag: 'f',
},
dryRun: {
type: 'boolean',
alias: 'd',
shortFlag: 'd',
},
verbose: {
type: 'boolean',
alias: 'v',
shortFlag: 'v',
},
},
});
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"del-cli": "./cli.js",
"del": "./cli.js"
},
"sideEffects": false,
"engines": {
"node": ">=14.16"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -50,13 +51,13 @@
"cross-platform"
],
"dependencies": {
"del": "^7.1.0",
"meow": "^10.1.3"
"del": "^8.0.0",
"meow": "^13.2.0"
},
"devDependencies": {
"ava": "^4.3.1",
"execa": "^6.1.0",
"temp-write": "^5.0.0",
"xo": "^0.56.0"
"ava": "^6.1.3",
"execa": "^9.4.0",
"temp-write": "^6.0.0",
"xo": "^0.59.3"
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Benefits over `rm -rf`: Cross-platform, safer by default as it doesn't allow del

## Related

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

0 comments on commit de54031

Please sign in to comment.