Skip to content

Commit 1edca4f

Browse files
committed
Require Node.js 18
1 parent 82b5953 commit 1edca4f

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

.github/workflows/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13-
- 16
13+
- 20
14+
- 18
1415
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
1718
with:
1819
node-version: ${{ matrix.node-version }}
1920
- run: npm install

cli.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ meow(`
1616
if (process.stdin.isTTY || process.env.STDIN === '0') {
1717
process.stdout.write(clipboardy.readSync());
1818
} else {
19-
(async () => {
20-
clipboardy.writeSync(await getStdin());
21-
})();
19+
clipboardy.writeSync(await getStdin());
2220
}

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"clipboard": "./cli.js"
1616
},
1717
"engines": {
18-
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
18+
"node": ">=18"
1919
},
2020
"scripts": {
2121
"test": "xo && ava"
@@ -39,13 +39,13 @@
3939
"xsel"
4040
],
4141
"dependencies": {
42-
"clipboardy": "^3.0.0",
42+
"clipboardy": "^4.0.0",
4343
"get-stdin": "^9.0.0",
44-
"meow": "^10.1.1"
44+
"meow": "^12.1.1"
4545
},
4646
"devDependencies": {
47-
"ava": "^3.15.0",
48-
"execa": "^5.1.1",
49-
"xo": "^0.45.0"
47+
"ava": "^5.3.1",
48+
"execa": "^8.0.1",
49+
"xo": "^0.56.0"
5050
}
5151
}

readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ npm install --global clipboard-cli
1313
## Usage
1414

1515
```
16-
$ clipboard --help
16+
clipboard --help
1717
18-
Example
19-
$ echo 🦄 | clipboard
20-
$ clipboard
21-
🦄
18+
Example
19+
$ echo 🦄 | clipboard
20+
$ clipboard
21+
🦄
2222
```
2323

2424
## Tip

test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import execa from 'execa';
2+
import {execa} from 'execa';
33

44
test('main', async t => {
55
const input = '🦄';

0 commit comments

Comments
 (0)