Skip to content

Commit fdbfffc

Browse files
committed
chore: set minimum Node.js version to 18.0.0
Update the engines field in package.json and the min-node-version in the build and release CI workflows. This also lets eslint-plugin-n flag usage of APIs unavailable in the supported version range.
1 parent 14c1e0e commit fdbfffc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
package-manager: 'yarn'
4040
cache: false
41-
min-node-version: 16
41+
min-node-version: 18
4242
rust: true
4343
only: darwin-arm64,darwin-x64,linux-arm64,linux-x64
4444

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
package-manager: 'yarn'
2828
cache: false
29-
min-node-version: 16
29+
min-node-version: 18
3030
rust: true
3131
only: darwin-arm64,darwin-x64,linux-arm64,linux-x64
3232

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@
3737
"eslint-plugin-n": "^17.24.0",
3838
"eslint-plugin-unicorn": "^63.0.0",
3939
"globals": "^17.4.0"
40+
},
41+
"engines": {
42+
"node": ">=18.0.0"
4043
}
4144
}

0 commit comments

Comments
 (0)