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.
This commit is contained in:
Adam Moussa 2026-05-06 18:38:51 -04:00
parent 95115dcf38
commit 6d9b874250
3 changed files with 22 additions and 15 deletions

32
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": "^25.6.0",
"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": {
@ -46,6 +46,7 @@
"semver"
],
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"jsonschema": "~1.4.1",
"semver": "^7.7.4"
@ -214,6 +215,7 @@
"integrity": "sha512-q0dhIfdm3R9EEElaUXvoLD0EBm4KYPcJC4So/skToMPACiznNgVI2Vup4PKM716KTaDsIcF8V1EA7s33H7oWMg==",
"dev": true,
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "5.2.0",
@ -2065,13 +2067,14 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "22.19.17",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",
"integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==",
"version": "25.6.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
"integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"undici-types": "~6.21.0"
"undici-types": "~7.19.0"
}
},
"node_modules/acorn": {
@ -2139,6 +2142,7 @@
"mime-types"
],
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@aws-cdk/asset-awscli-v1": "2.2.273",
"@aws-cdk/asset-node-proxy-agent-v6": "^2.1.1",
@ -2515,7 +2519,8 @@
"version": "10.6.0",
"resolved": "https://registry.npmjs.org/constructs/-/constructs-10.6.0.tgz",
"integrity": "sha512-TxHOnBO5zMo/G76ykzGF/wMpEHu257TbWiIxP9K0Yv/+t70UzgBQiTqjkAsWOPC6jW91DzJI0+ehQV6xDRNBuQ==",
"license": "Apache-2.0"
"license": "Apache-2.0",
"peer": true
},
"node_modules/create-require": {
"version": "1.1.1",
@ -2780,11 +2785,12 @@
"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",
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@ -2794,9 +2800,9 @@
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"version": "7.19.2",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",
"integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
"dev": true,
"license": "MIT"
},

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": "^25.6.0",
"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,