Upgrade to TypeScript ~6.0.3 (#19)

* Upgrade to TypeScript 6.0.3 and @types/node 25.6.0

TS 6 requires explicit node type resolution — added "types": ["node"]
to tsconfig.json to resolve path and __dirname globals.

* Pin typescript to ~6.0.3 and @types/node to ^22

TS doesn't follow semver — use tilde to avoid surprise minor-release
breakage. Keep @types/node on v22 to match Lambda NODEJS_22_X runtime.

* Regenerate lockfile with npm 11.14.0

Fixes corrupted peer:true flags on direct dependencies caused by
npm <11.6.3 bug (npm/cli#8690).

* Trigger CI

* Trigger CI

* Trigger CI

* Add id-token: write permission for claude-code-action

* Trigger CI
This commit is contained in:
Adam Moussa 2026-05-06 19:56:57 -04:00 • committed by GitHub
parent a2477f4c57
commit 77e7dcfe46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

10
package-lock.json generated
View file

@ -18,11 +18,11 @@
"@aws-sdk/client-dynamodb": "^3.1030.0",
"@aws-sdk/lib-dynamodb": "^3.1041.0",
"@types/aws-lambda": "^8.10.149",
"@types/node": "^22.0.0",
"@types/node": "^22.19.17",
"aws-cdk": "^2.1120.0",
"esbuild": "^0.25.0",
"ts-node": "^10.9.2",
"typescript": "~5.7.2"
"typescript": "~6.0.3"
}
},
"node_modules/@aws-cdk/asset-awscli-v1": {
@ -2780,9 +2780,9 @@
"license": "0BSD"
},
"node_modules/typescript": {
"version": "5.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
"dev": true,
"license": "Apache-2.0",
"bin": {

View file

@ -14,11 +14,11 @@
"@aws-sdk/client-dynamodb": "^3.1030.0",
"@aws-sdk/lib-dynamodb": "^3.1041.0",
"@types/aws-lambda": "^8.10.149",
"@types/node": "^22.0.0",
"@types/node": "^22.19.17",
"aws-cdk": "^2.1120.0",
"esbuild": "^0.25.0",
"ts-node": "^10.9.2",
"typescript": "~5.7.2"
"typescript": "~6.0.3"
},
"dependencies": {
"@cdklabs/generative-ai-cdk-constructs": "^0.1.0",

View file

@ -2,6 +2,7 @@
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"types": ["node"],
"module": "commonjs",
"declaration": true,
"strict": true,