File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1212 node-version :
1313 - 20
1414 - 18
15- - 16
1615 steps :
17- - uses : actions/checkout@v3
18- - uses : actions/setup-node@v3
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-node@v4
1918 with :
2019 node-version : ${{ matrix.node-version }}
2120 - run : npm install
Original file line number Diff line number Diff line change 11import path from 'node:path' ;
2- import { findUp , findUpSync } from 'find-up' ;
2+ import { findUp , findUpSync } from 'find-up-simple ' ;
33import { readPackage , readPackageSync } from 'read-pkg' ;
44
55export async function readPackageUp ( options ) {
Original file line number Diff line number Diff line change 1616 "default" : " ./index.js"
1717 },
1818 "engines" : {
19- "node" : " >=16 "
19+ "node" : " >=18 "
2020 },
2121 "scripts" : {
2222 "test" : " xo && ava && tsd"
5252 " path"
5353 ],
5454 "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"
5858 },
5959 "devDependencies" : {
6060 "ava" : " ^5.3.1" ,
61- "tsd" : " ^0.28.1 " ,
61+ "tsd" : " ^0.29.0 " ,
6262 "xo" : " ^0.56.0"
6363 },
6464 "xo" : {
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ console.log(await readPackageUp());
3636
3737### readPackageUp(options?)
3838
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.
4040
4141### readPackageUpSync(options?)
4242
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.
4444
4545#### options
4646
You can’t perform that action at this time.
0 commit comments