Upgrade to TypeScript ~6.0.3

Adds "types": ["node"] to tsconfig.json — required by TS 6 to resolve
Node globals like path and __dirname. Uses tilde pin since TS doesn't
follow semver.
This commit is contained in:
Adam Moussa 2026-05-06 19:13:52 -04:00
parent 7a1a030ded
commit c4c7d423b9
3 changed files with 12 additions and 6 deletions

15
package-lock.json generated
View file

@ -16,7 +16,7 @@
"@types/node": "^25.6.0",
"aws-cdk": "^2.180.0",
"ts-node": "^10.9.2",
"typescript": "~5.7.2"
"typescript": "~6.0.3"
}
},
"node_modules/@aws-cdk/asset-awscli-v1": {
@ -53,6 +53,7 @@
"semver"
],
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"jsonschema": "~1.4.1",
"semver": "^7.7.4"
@ -155,6 +156,7 @@
"integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"undici-types": "~7.19.0"
}
@ -224,6 +226,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",
@ -583,7 +586,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",
@ -654,11 +658,12 @@
}
},
"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"

View file

@ -14,7 +14,7 @@
"@types/node": "^25.6.0",
"aws-cdk": "^2.180.0",
"ts-node": "^10.9.2",
"typescript": "~5.7.2"
"typescript": "~6.0.3"
},
"dependencies": {
"@aws-cdk/aws-lambda-python-alpha": "^2.180.0-alpha.0",

View file

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