Skip to content

Commit

Permalink
Upgrade all references to node18 to node 20, packages incl
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Sep 20, 2024
1 parent e012537 commit a33fa3b
Show file tree
Hide file tree
Showing 13 changed files with 308 additions and 219 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.0
v20.15.0
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"typescript": "^4.9.5"
},
"devDependencies": {
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "20.1.4",
"@types/jest": "^29.2.2",
"@types/luxon": "^3.4.2",
"@types/morgan": "^1.9.3",
"@types/node": "^18.11.9",
"@types/node": "^20.16.5",
"@types/supertest": "^2.0.12",
"jest": "^29.3.1",
"jest-extended": "^3.2.4",
Expand Down
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@aws-sdk/client-secrets-manager": "^3.301.0",
"@elastic/elasticsearch": "^8.6.0",
"elastic-apm-node": "^3.43.0",
"elastic-apm-node": "^4.7.3",
"winston": "^3.8.2",
"zod": "^3.21.4"
},
Expand Down
2 changes: 1 addition & 1 deletion common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "lib",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepare": "husky install"
},
"devDependencies": {
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "20.1.4",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4"
Expand Down
4 changes: 2 additions & 2 deletions pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"rxjs": "^7.8.0"
},
"devDependencies": {
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "20.1.4",
"@types/aws-lambda": "^8.10.114",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.5",
"@types/node": "^20.16.5",
"@types/node-fetch": "^2.6.2",
"esbuild": "^0.17.17",
"jest": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion pipeline/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
yarn run esbuild ./src/lambda.js \
--bundle \
--platform=node \
--target=node18 \
--target=node20 \
--sourcemap=external \
--outdir=dist

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"noEmit": true,
"forceConsistentCasingInFileNames": true
Expand Down
4 changes: 2 additions & 2 deletions unpublisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.0",
"@tsconfig/node20": "20.1.4",
"@types/aws-lambda": "^8.10.119",
"@types/jest": "^29.5.2",
"@types/node": "^20.4.0",
"@types/node": "^20.16.5",
"esbuild": "^0.18.11",
"jest": "^29.6.1",
"jest-extended": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion unpublisher/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
yarn run esbuild ./src/lambda.js \
--bundle \
--platform=node \
--target=node18 \
--target=node20 \
--sourcemap=external \
--outdir=dist

Expand Down
4 changes: 2 additions & 2 deletions webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"@weco/content-common": "*"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.0",
"@tsconfig/node20": "20.1.4",
"@types/aws-lambda": "^8.10.119",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@types/node": "^20.16.5",
"esbuild": "^0.18.14",
"jest": "^29.6.1",
"ts-jest": "^29.1.1",
Expand Down
2 changes: 1 addition & 1 deletion webhook/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
yarn run esbuild ./src/lambda.js \
--bundle \
--platform=node \
--target=node18 \
--target=node20 \
--sourcemap=external \
--outdir=dist

Expand Down
Loading

0 comments on commit a33fa3b

Please sign in to comment.