Skip to content

Commit

Permalink
Revert "unsupport node.js v20"
Browse files Browse the repository at this point in the history
This reverts commit 41ab20c.
  • Loading branch information
legobeat committed Oct 17, 2023
1 parent 41ab20c commit 28ac1c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": "^16.20 || ^18.16"
"node": "^16.20 || ^18.16 || >=20"
},
"files": [
"dist/"
Expand Down
2 changes: 1 addition & 1 deletion src/file-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('readJsonObjectFile', () => {
.mockImplementationOnce(async () => mockJsonString);

await expect(readJsonObjectFile(path)).rejects.toThrow(
/^Unexpected token/u,
/^Unexpected token|^Expected property name/u,
);
});

Expand Down

0 comments on commit 28ac1c1

Please sign in to comment.