Skip to content

Commit e144e6b

Browse files
committed
add Node.js 18, 20 and 22 to engines
npm 10.8.2 doesn't install the `latest` tagged version of @pkgjs/support with Node.js 22 as Node.js 22 is outside of the declared specification for `engines`->`node`. Regardless of whether the change in behaviour of npm is correct for a semver-patch release of npm, update the `engines` field to include the supported Node.js release lines at this point in time.
1 parent 9fa0179 commit e144e6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
13+
node-version: [10.x, 12.x, 14.x, 16.x, 17.x, 18.x, 20.x, 22.x]
1414
os: [ubuntu-latest, windows-latest]
1515

1616
steps:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
"mocha": "^6.2.0"
4949
},
5050
"engines": {
51-
"node": "^17 || ^16 || ^14 || ^13 || ^12 || ^11 || ^10.19"
51+
"node": ">=10.19"
5252
}
5353
}

0 commit comments

Comments
 (0)