File tree Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
node-version :
13
+ - 21
13
14
- 20
14
15
- 18
15
- - 16
16
16
steps :
17
- - uses : actions/checkout@v3
18
- - uses : actions/setup-node@v3
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-node@v4
19
19
with :
20
20
node-version : ${{ matrix.node-version }}
21
21
- run : npm install
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
import process from 'node:process' ;
3
3
import meow from 'meow' ;
4
- import { readPackageUp } from 'read-pkg -up' ;
4
+ import { readPackageUp } from 'read-package -up' ;
5
5
import open from 'open' ;
6
6
import packageJson , { PackageNotFoundError } from 'package-json' ;
7
7
import githubUrlFromGit from 'github-url-from-git' ;
Original file line number Diff line number Diff line change 11
11
"url" : " https://sindresorhus.com"
12
12
},
13
13
"bin" : {
14
- "npm-home" : " cli.js" ,
15
- "nh" : " cli.js"
14
+ "npm-home" : " ./ cli.js" ,
15
+ "nh" : " ./ cli.js"
16
16
},
17
17
"type" : " module" ,
18
18
"engines" : {
19
- "node" : " >=16 "
19
+ "node" : " >=18 "
20
20
},
21
21
"scripts" : {
22
22
"test" : " xo && ava"
44
44
"dependencies" : {
45
45
"github-url-from-git" : " ^1.5.0" ,
46
46
"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 "
53
53
},
54
54
"devDependencies" : {
55
- "ava" : " ^5.3 .1" ,
55
+ "ava" : " ^6.1 .1" ,
56
56
"execa" : " ^8.0.1" ,
57
- "xo" : " ^0.56 .0"
57
+ "xo" : " ^0.57 .0"
58
58
}
59
59
}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import {execa} from 'execa';
4
4
// Tests only checks that opening doesn't return an error, not that the correct page was opened.
5
5
// These have to be manually verified.
6
6
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_ ) ) ;
9
9
} ) ;
10
10
11
11
test ( 'main' , testCli ) ;
You can’t perform that action at this time.
0 commit comments