Skip to content

chore(deps-dev): bump typescript from 5.4.5 to 6.0.3#61

Merged
alphacrack merged 1 commit into
mainfrom
chore/typescript-6
Jul 21, 2026
Merged

chore(deps-dev): bump typescript from 5.4.5 to 6.0.3#61
alphacrack merged 1 commit into
mainfrom
chore/typescript-6

Conversation

@alphacrack

Copy link
Copy Markdown
Owner

Supersedes #13 — Dependabot couldn't rebase it after #59 regenerated the lockfile ("Dependabot can't resolve your JavaScript dependency files").

TypeScript 6.0 needed three tsconfig.spec.json changes, all rooted in TS 6 breaking changes:

  1. moduleResolution: node removed in TS 6 → switched module to node20, matching what jsii 6 generates for the main tsconfig.
  2. baseUrl hard-deprecated (TS5101) → removed; the @/* paths alias is now explicitly relative.
  3. No more automatic @types inclusion under this setup → declared "types": ["jest", "node"] explicitly.

Noteworthy failure mode: ts-jest swallowed the TS5101 config error and compiled with a typeless fallback config, so jest reported "Tests: 0 total" with what looked like a success line. Worth remembering when reading CI logs.

Verification

  • npx tsc -p tsconfig.spec.json --noEmit: clean
  • npm test: 34/34
  • npm run build (jsii): clean
  • npm run lint / format:check: clean

Closes #13. With this, #34 has no remaining scope (jsii 6 and TS 6 both merged) and can be closed.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant