Skip to content

Commit

Permalink
Require Node.js 12 and upgrade dependencies
Browse files Browse the repository at this point in the history
Fixes #22
Fixes #21
  • Loading branch information
sindresorhus committed Jun 15, 2021
1 parent 66d9ed2 commit 4c65d87
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
3 changes: 0 additions & 3 deletions .github/funding.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
6 changes: 3 additions & 3 deletions cli.js
@@ -1,7 +1,6 @@
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const del = require('del');
import meow from 'meow';
import del from 'del';

const cli = meow(`
Usage
Expand All @@ -15,6 +14,7 @@ const cli = meow(`
$ del unicorn.png rainbow.png
$ del "*.png" "!unicorn.png"
`, {
importMeta: import.meta,
flags: {
force: {
type: 'boolean',
Expand Down
19 changes: 10 additions & 9 deletions package.json
Expand Up @@ -10,12 +10,13 @@
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"bin": {
"del": "cli.js",
"del-cli": "cli.js"
"del": "./cli.js",
"del-cli": "./cli.js"
},
"engines": {
"node": ">=8"
"node": ">=12.20"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -49,13 +50,13 @@
"cross-platform"
],
"dependencies": {
"del": "^5.1.0",
"meow": "^6.1.1"
"del": "^6.0.0",
"meow": "^10.0.1"
},
"devDependencies": {
"ava": "^2.3.0",
"execa": "^2.0.4",
"temp-write": "^4.0.0",
"xo": "^0.24.0"
"ava": "^3.15.0",
"execa": "^5.1.1",
"temp-write": "^5.0.0",
"xo": "^0.40.2"
}
}
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -28,6 +28,7 @@ $ del --help
$ del unicorn.png rainbow.png
$ del "*.png" "!unicorn.png"
```

> :warning: **Windows users**: Since `$ del` is already a builtin command on Windows, you need to use `$ del-cli` there.
## Related
Expand Down
2 changes: 1 addition & 1 deletion test.js
@@ -1,4 +1,4 @@
import fs from 'fs';
import fs from 'node:fs';
import test from 'ava';
import tempWrite from 'temp-write';
import execa from 'execa';
Expand Down

0 comments on commit 4c65d87

Please sign in to comment.