Commit 8c1ef45
committed
fix(@angular/cli): skip CLI version check for migrate-only updates
When running `ng update @angular/cli --name=use-application-builder`,
the CLI would fetch and install the latest version (e.g., v20) as a
temporary CLI to perform the update, even though migrate-only mode
operates on the currently installed package version. This caused
incompatible packages to be installed (e.g., @angular/build@20 on
an Angular 18/19 project).
The fix skips the CLI version check when in migrate-only mode
(--name or --migrate-only), since migrations run against the
installed version and don't need a different CLI version.
Closes #306961 parent c7eb5e7 commit 8c1ef45
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments