Skip to content

Migrations modify non-Angular tsconfig.json #69837

Description

@Clashsoft

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

The migrations @angular/core:strict-templates-default and @angular/core:strict-safe-navigation-narrow modify tsconfig.json that are unrelated to Angular projects. In fact, they appear to look for any file named tsconfig.json to add their additional settings. This creates huge changelists in monorepos (e.g. Nx) where many apps/libraries are not Angular.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)

Angular CLI       : 22.0.7
Angular           : 22.0.7
Node.js           : 26.5.0
Package Manager   : pnpm 11.10.0+sha512.0b7f8b98060031904c017e3a41eb187a16d40eeb829b95c4f8cb03681761fc4ab53dd219115b9b447f4dce1a05a214764461e7d3703392a9f32f9511ce8c86c8
Operating System  : darwin arm64

┌────────────────────────────┬───────────────────┬───────────────────┐
│ Package                    │ Installed Version │ Requested Version │
├────────────────────────────┼───────────────────┼───────────────────┤
│ @angular-devkit/core       │ 22.0.7            │ 22.0.7            │
│ @angular-devkit/schematics │ 22.0.7            │ 22.0.7            │
│ @angular/build             │ 22.0.7            │ 22.0.7            │
│ @angular/cli               │ 22.0.7            │ 22.0.7            │
│ @angular/common            │ 22.0.7            │ 22.0.7            │
│ @angular/compiler          │ 22.0.7            │ 22.0.7            │
│ @angular/compiler-cli      │ 22.0.7            │ 22.0.7            │
│ @angular/core              │ 22.0.7            │ 22.0.7            │
│ @angular/forms             │ 22.0.7            │ 22.0.7            │
│ @angular/language-service  │ 22.0.7            │ 22.0.7            │
│ @angular/localize          │ 22.0.7            │ 22.0.7            │
│ @angular/platform-browser  │ 22.0.7            │ 22.0.7            │
│ @angular/router            │ 22.0.7            │ 22.0.7            │
│ @schematics/angular        │ 22.0.7            │ 22.0.7            │
│ rxjs                       │ 7.8.2             │ ^7.8.2            │
│ typescript                 │ 6.0.3             │ 6.0.3             │
│ vitest                     │ 4.1.10            │ ~4.1.10           │
│ zone.js                    │ 0.16.2            │ 0.16.2            │
└────────────────────────────┴───────────────────┴───────────────────┘

Anything else?

See nrwl/nx#36390

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: migrationsIssues related to `ng update`/`ng generate` migrationsopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions