Skip to content

chore(deps): update dependency typescript to v6#2123

Open
renovate[bot] wants to merge 3 commits intomasterfrom
renovate/typescript-6.x
Open

chore(deps): update dependency typescript to v6#2123
renovate[bot] wants to merge 3 commits intomasterfrom
renovate/typescript-6.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 23, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
typescript (source) 5.9.36.0.3 age adoption passing confidence

Release Notes

microsoft/TypeScript (typescript)

v6.0.3

Compare Source

v6.0.2

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/typescript-6.x branch 10 times, most recently from 9fda49a to 55dd10a Compare March 28, 2026 09:21
@renovate renovate Bot force-pushed the renovate/typescript-6.x branch 10 times, most recently from 16fa9c1 to 3ffa992 Compare April 6, 2026 04:34
@renovate renovate Bot force-pushed the renovate/typescript-6.x branch 9 times, most recently from 72f2a30 to 9b0d800 Compare April 10, 2026 21:30
@renovate renovate Bot force-pushed the renovate/typescript-6.x branch 9 times, most recently from 56294bb to 10f3bb8 Compare April 18, 2026 01:14
@renovate renovate Bot force-pushed the renovate/typescript-6.x branch 5 times, most recently from 3d0c7b0 to 3f1e61f Compare April 22, 2026 23:21
@renovate renovate Bot force-pushed the renovate/typescript-6.x branch from 3f1e61f to 1cea12d Compare April 23, 2026 04:38
…ibility

TypeScript 6 introduces two breaking changes that affect all packages:
1. rootDir no longer inferred from source files — must be set explicitly when outDir is used
2. types array now defaults to [] instead of auto-including all @types/* packages

Fixes:
- Add rootDir: src to all package tsconfigs that set outDir: dist
- Add types: [node] to packages that use Node.js built-ins (__dirname, path, fs, child_process, process)
@just-jeb
Copy link
Copy Markdown
Owner

The build failure has been fixed directly on this branch.

Root cause: TypeScript 6 introduced two breaking changes that affect all packages here:

  1. rootDir no longer inferred — TS6 always defaults rootDir to the tsconfig directory (project root), not the inferred common source directory. Any package with outDir: dist and sources in src/ must now set rootDir: src explicitly. This caused error TS5011 in @angular-builders/common (and would have cascaded to all other packages).

  2. types now defaults to [] — TS6 no longer auto-includes all @types/* packages. Packages using Node.js built-ins (__dirname, path, fs, child_process, process) need "types": ["node"] to keep getting those types.

Fix applied: Added "rootDir": "src" to all package tsconfigs, and "types": ["node"] to packages that use Node built-ins (common, custom-webpack, custom-esbuild, bazel, timestamp, jest lib).

@just-jeb
Copy link
Copy Markdown
Owner

Angular compatibility check ✅

Verified against @angular/compiler-cli peer dependency declarations on npm:

Angular version TypeScript peer dep TS 6.0 supported?
Angular 20 >=5.8 <6.0 ❌ No
Angular 21 (current) >=5.9 <6.1 ✅ Yes (6.0 < 6.1)
Angular 22 (next) >=6.0 <6.1 ✅ Required

This PR targets the Angular 21 branch where TS 6.0 is explicitly in range. Good to merge once CI passes.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 24, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

…S6 compatibility

TypeScript 6 no longer silently ignores unknown top-level tsconfig fields.
The 'types' array was placed at the root of tsconfig.lib.json instead of
inside 'compilerOptions', which caused TS2304/TS2593 errors for jest globals
(describe, it, expect, jest) in global-mocks source files.

Move 'types' inside 'compilerOptions' and add 'node' alongside 'jest'
to match tsconfig.spec.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant