From 06e10735e662b14737096adf6b010a1660575f30 Mon Sep 17 00:00:00 2001 From: alphacrack <18480504+alphacrack@users.noreply.github.com> Date: Tue, 21 Jul 2026 21:25:15 +0200 Subject: [PATCH] chore(deps-dev): bump typescript from 5.4.5 to 6.0.3 Supersedes the Dependabot PR, which could not rebase after the lockfile regeneration in #59. TypeScript 6.0 required two tsconfig.spec.json fixes: - module 'commonjs' + moduleResolution 'node': the legacy node10 resolution was removed in TS 6; switched to module 'node20' (matching the jsii 6-generated tsconfig). - baseUrl: hard-deprecated in TS 6 (TS5101); removed, with the paths alias made explicitly relative. - types: TS 6 no longer auto-includes @types packages under this setup; declared ['jest', 'node'] explicitly. Previously ts-jest swallowed the TS5101 config error and silently compiled without types. Verified: tsc -p tsconfig.spec.json clean, 34/34 tests, jsii build clean, lint clean. Co-Authored-By: Claude Fable 5 --- package-lock.json | 37 ++++--------------------------------- package.json | 2 +- tsconfig.spec.json | 7 +++---- 3 files changed, 8 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index ee103ba..866b8b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "nx": "23.1.0", "prettier": "^3.8.4", "ts-jest": "^29.4.11", - "typescript": "~5.4.0", + "typescript": "~6.0.3", "typescript-eslint": "^8.60.1" }, "engines": { @@ -7299,35 +7299,6 @@ "node": ">= 20.16.0" } }, - "node_modules/jsii-rosetta/node_modules/typescript": { - "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" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/jsii/node_modules/typescript": { - "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": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -9381,9 +9352,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "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": { diff --git a/package.json b/package.json index eb279ae..28be4d5 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "nx": "23.1.0", "prettier": "^3.8.4", "ts-jest": "^29.4.11", - "typescript": "~5.4.0", + "typescript": "~6.0.3", "typescript-eslint": "^8.60.1" }, "peerDependencies": { diff --git a/tsconfig.spec.json b/tsconfig.spec.json index 9cb70a5..a876a28 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -1,13 +1,12 @@ { "compilerOptions": { "target": "ES2020", - "module": "commonjs", + "module": "node20", "lib": ["es2020"], "declaration": false, "strict": true, "noImplicitAny": true, "strictNullChecks": true, - "moduleResolution": "node", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "experimentalDecorators": true, @@ -15,10 +14,10 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, + "types": ["jest", "node"], "rootDir": ".", - "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": ["./src/*"] } }, "include": ["src/**/*", "test/**/*"]