Skip to content

Commit 7b5ad8a

Browse files
Target Node.js 18, update dependencies (#18)
1 parent 985e5a2 commit 7b5ad8a

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
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+
- 21
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import process from 'node:process';
33
import meow from 'meow';
4-
import {readPackageUp} from 'read-pkg-up';
4+
import {readPackageUp} from 'read-package-up';
55
import open from 'open';
66
import packageJson, {PackageNotFoundError} from 'package-json';
77
import githubUrlFromGit from 'github-url-from-git';

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"bin": {
14-
"npm-home": "cli.js",
15-
"nh": "cli.js"
14+
"npm-home": "./cli.js",
15+
"nh": "./cli.js"
1616
},
1717
"type": "module",
1818
"engines": {
19-
"node": ">=16"
19+
"node": ">=18"
2020
},
2121
"scripts": {
2222
"test": "xo && ava"
@@ -44,16 +44,16 @@
4444
"dependencies": {
4545
"github-url-from-git": "^1.5.0",
4646
"is-url-superb": "^6.1.0",
47-
"log-symbols": "^5.1.0",
48-
"meow": "^12.1.0",
49-
"open": "^9.1.0",
50-
"p-map": "^6.0.0",
51-
"package-json": "^8.1.1",
52-
"read-pkg-up": "^10.0.1"
47+
"log-symbols": "^6.0.0",
48+
"meow": "^13.2.0",
49+
"open": "^10.0.3",
50+
"p-map": "^7.0.1",
51+
"package-json": "^10.0.0",
52+
"read-package-up": "^11.0.0"
5353
},
5454
"devDependencies": {
55-
"ava": "^5.3.1",
55+
"ava": "^6.1.1",
5656
"execa": "^8.0.1",
57-
"xo": "^0.56.0"
57+
"xo": "^0.57.0"
5858
}
5959
}

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {execa} from 'execa';
44
// Tests only checks that opening doesn't return an error, not that the correct page was opened.
55
// These have to be manually verified.
66

7-
const testCli = test.macro(async (t, args = []) => {
8-
await t.notThrowsAsync(execa('./cli.js', args));
7+
const testCli = test.macro(async (t, arguments_ = []) => {
8+
await t.notThrowsAsync(execa('./cli.js', arguments_));
99
});
1010

1111
test('main', testCli);

0 commit comments

Comments
 (0)