Skip to content

Commit

Permalink
feat!: require node 18 (#5225)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Sep 18, 2023
1 parent 2f1d9bd commit b2f851a
Show file tree
Hide file tree
Showing 13 changed files with 1,207 additions and 588 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ (matrix.package == 'gcf-utils' || matrix.package == 'issue-utils' || matrix.package == 'canary-bot' || matrix.package == 'datastore-lock' ) && 18 || 14 }}
node-version: ${{ (endsWith(matrix.package, '-utils') || matrix.package == 'canary-bot' || matrix.package == 'datastore-lock' || matrix.package == 'object-selector' ) && 18 || 14 }}
- run: echo ./packages/${{ matrix.package }}
- run: cd ./packages/${{ matrix.package }}
- run: npm ci
Expand Down
77 changes: 44 additions & 33 deletions packages/bot-config-utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/bot-config-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compile": "tsc -p .",
"pretest": "npm run compile",
"prepare": "npm run compile",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha ./build/test",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha --node-option no-experimental-fetch ./build/test",
"test:snap": "SNAPSHOT_UPDATE=1 npm test",
"system-test": "npm run pretest && cross-env LOG_LEVEL=fatal mocha ./build/test/integration",
"fix": "gts fix",
Expand All @@ -19,7 +19,7 @@
"dependencies": {
"ajv": "^8.11.0",
"ajv-formats": "^2.1.1",
"gcf-utils": "^14.0.1",
"gcf-utils": "^15.0.0",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.0"
},
Expand All @@ -40,7 +40,7 @@
"typescript": "^4.9.4"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},
"keywords": [
"Bot config",
Expand Down
2 changes: 1 addition & 1 deletion packages/cron-utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cron-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compile": "tsc -p .",
"pretest": "npm run compile",
"prepare": "npm run compile",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha ./build/test",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha --node-option no-experimental-fetch ./build/test",
"system-test": "npm run pretest && cross-env LOG_LEVEL=fatal mocha ./build/test/integration",
"fix": "gts fix",
"lint": "gts check"
Expand Down Expand Up @@ -41,7 +41,7 @@
"typescript": "^4.9.4"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},
"keywords": [],
"author": "Jeff Ching <chingor@google.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/git-file-utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/git-file-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compile": "tsc -p .",
"pretest": "npm run compile",
"prepare": "npm run compile",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha ./build/test",
"test": "cross-env NODE_ENV=test LOG_LEVEL=fatal c8 mocha --node-option no-experimental-fetch ./build/test",
"test:snap": "SNAPSHOT_UPDATE=1 npm test",
"system-test": "npm run pretest && cross-env LOG_LEVEL=fatal mocha ./build/test/integration",
"fix": "gts fix",
Expand Down Expand Up @@ -39,7 +39,7 @@
"typescript": "^4.9.4"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},
"keywords": [
"Git data API"
Expand Down
3 changes: 2 additions & 1 deletion packages/label-utils/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "./node_modules/gts"
"extends": "./node_modules/gts",
"root": true
}
Loading

0 comments on commit b2f851a

Please sign in to comment.