Skip to content

Commit 052aa84

Browse files
committed
Use Node.js v20 and TS v5.4.5
Consolidating all the tasks to use Node.js v20 into one commit required bumping TypeScript so that we could use `es2023` as a compilation target.
1 parent aa7be35 commit 052aa84

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
- 'v*'
88
env:
9-
node_version: "16.x"
9+
node_version: "20.x"
1010

1111
jobs:
1212
build: # make sure build/ci work properly

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ inputs:
1111
description: 'Appspec file'
1212
required: true
1313
runs:
14-
using: 'node16'
14+
using: 'node20'
1515
main: 'dist/index.js'

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"aws-sdk": "^2.1246.0"
2020
},
2121
"devDependencies": {
22-
"@tsconfig/node16": "^1.0.3",
22+
"@tsconfig/node20": "^20.1.4",
2323
"@types/jest": "^29.2.1",
24-
"@types/node": "^16.18.3",
24+
"@types/node": "^20.12.12",
2525
"@typescript-eslint/parser": "^7.0.2",
2626
"@vercel/ncc": "^0.34.0",
2727
"eslint": "^8.56.0",
@@ -31,6 +31,6 @@
3131
"jest": "^29.2.2",
3232
"prettier": "^2.7.1",
3333
"ts-jest": "^29.0.3",
34-
"typescript": "^4.8.4"
34+
"typescript": "^5.4.5"
3535
}
3636
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node16/tsconfig.json",
2+
"extends": "@tsconfig/node20/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./lib", /* Redirect output structure to the directory. */
55
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

yarn.lock

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@
667667
dependencies:
668668
"@sinonjs/commons" "^3.0.0"
669669

670-
"@tsconfig/node16@^1.0.3":
671-
version "1.0.4"
672-
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9"
673-
integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==
670+
"@tsconfig/node20@^20.1.4":
671+
version "20.1.4"
672+
resolved "https://registry.yarnpkg.com/@tsconfig/node20/-/node20-20.1.4.tgz#3457d42eddf12d3bde3976186ab0cd22b85df928"
673+
integrity sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg==
674674

675675
"@types/babel__core@^7.1.14":
676676
version "7.20.5"
@@ -749,18 +749,13 @@
749749
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
750750
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
751751

752-
"@types/node@*":
752+
"@types/node@*", "@types/node@^20.12.12":
753753
version "20.12.12"
754754
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.12.tgz#7cbecdf902085cec634fdb362172dfe12b8f2050"
755755
integrity sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==
756756
dependencies:
757757
undici-types "~5.26.4"
758758

759-
"@types/node@^16.18.3":
760-
version "16.18.97"
761-
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.97.tgz#d7926a8030f0d714d555b4550c0cc7731495cfe5"
762-
integrity sha512-4muilE1Lbfn57unR+/nT9AFjWk0MtWi5muwCEJqnOvfRQDbSfLCUdN7vCIg8TYuaANfhLOV85ve+FNpiUsbSRg==
763-
764759
"@types/stack-utils@^2.0.0":
765760
version "2.0.3"
766761
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8"
@@ -3891,10 +3886,10 @@ typed-array-length@^1.0.6:
38913886
is-typed-array "^1.1.13"
38923887
possible-typed-array-names "^1.0.0"
38933888

3894-
typescript@^4.8.4:
3895-
version "4.9.5"
3896-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
3897-
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
3889+
typescript@^5.4.5:
3890+
version "5.4.5"
3891+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
3892+
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
38983893

38993894
unbox-primitive@^1.0.2:
39003895
version "1.0.2"

0 commit comments

Comments
 (0)