Skip to content

Commit 935a546

Browse files
committedNov 3, 2023
Require Node.js 18
1 parent ec9827e commit 935a546

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed
 

‎.github/workflows/main.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ jobs:
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

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path';
2-
import {findUp, findUpSync} from 'find-up';
2+
import {findUp, findUpSync} from 'find-up-simple';
33
import {readPackage, readPackageSync} from 'read-pkg';
44

55
export async function readPackageUp(options) {

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"default": "./index.js"
1717
},
1818
"engines": {
19-
"node": ">=16"
19+
"node": ">=18"
2020
},
2121
"scripts": {
2222
"test": "xo && ava && tsd"
@@ -52,13 +52,13 @@
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": {

‎readme.md

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
Please sign in to comment.