File tree 4 files changed +10
-11
lines changed
4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 12
12
node-version :
13
13
- 20
14
14
- 18
15
- - 16
16
15
steps :
17
- - uses : actions/checkout@v3
18
- - uses : actions/setup-node@v3
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-node@v4
19
18
with :
20
19
node-version : ${{ matrix.node-version }}
21
20
- run : npm install
Original file line number Diff line number Diff line change 1
1
import path from 'node:path' ;
2
- import { findUp , findUpSync } from 'find-up' ;
2
+ import { findUp , findUpSync } from 'find-up-simple ' ;
3
3
import { readPackage , readPackageSync } from 'read-pkg' ;
4
4
5
5
export async function readPackageUp ( options ) {
Original file line number Diff line number Diff line change 16
16
"default" : " ./index.js"
17
17
},
18
18
"engines" : {
19
- "node" : " >=16 "
19
+ "node" : " >=18 "
20
20
},
21
21
"scripts" : {
22
22
"test" : " xo && ava && tsd"
52
52
" path"
53
53
],
54
54
"dependencies" : {
55
- "find-up" : " ^6.3 .0" ,
56
- "read-pkg" : " ^8.1 .0" ,
57
- "type-fest" : " ^4.2 .0"
55
+ "find-up-simple " : " ^1.0 .0" ,
56
+ "read-pkg" : " ^9.0 .0" ,
57
+ "type-fest" : " ^4.6 .0"
58
58
},
59
59
"devDependencies" : {
60
60
"ava" : " ^5.3.1" ,
61
- "tsd" : " ^0.28.1 " ,
61
+ "tsd" : " ^0.29.0 " ,
62
62
"xo" : " ^0.56.0"
63
63
},
64
64
"xo" : {
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ console.log(await readPackageUp());
36
36
37
37
### readPackageUp(options?)
38
38
39
- Returns a ` Promise<object> ` or ` Promise<undefined> ` if no ` package.json ` was found.
39
+ Returns a ` Promise<object> ` , or ` Promise<undefined> ` if no ` package.json ` was found.
40
40
41
41
### readPackageUpSync(options?)
42
42
43
- Returns the result object or ` undefined ` if no ` package.json ` was found.
43
+ Returns the result object, or ` undefined ` if no ` package.json ` was found.
44
44
45
45
#### options
46
46
You can’t perform that action at this time.
0 commit comments