You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Currently if I use custom builders (such as @angular-builders/custom-webpack) doing ng update @angular/cli skips some updates (for version 15 it doesn't update main karma file). This is due to migration step which checks if builder target is @angular-devkit/build-angular:karma. There should be a way to do migrations also for custom builders (which are using @angular-devkit/build-angular with webpack and index.html customizations under the hood).
At least i expect Angular migrations to work with community well known custom builders (such as @angular-builders/custom-webpack or ngx-build-plus), ideally it should work for any custom builders. Maybe migrations should not be checking only @angular-devkit/build-angular builders?
Minimal Reproduction
Set "builder": "@angular-builders/custom-webpack:karma", for "test" architect in angular.json file
Run ng update @angular/cli
Exception or Error
Main karma file is not updated, but it should be updated.
These 3rd party builders are not supported by the Angular team. Therefore it is the responsibility of the custom builder author to provide a migration as the Angular CLI does not know which options these builders provide, how they are used internally and how they interact together.
If needed the migrations can be extended by the 3rd party author, this is already being done by other 3rd parties like NX.
Command
update
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Currently if I use custom builders (such as
@angular-builders/custom-webpack
) doingng update @angular/cli
skips some updates (for version 15 it doesn't update main karma file). This is due to migration step which checks if builder target is@angular-devkit/build-angular:karma
. There should be a way to do migrations also for custom builders (which are using@angular-devkit/build-angular
with webpack and index.html customizations under the hood).At least i expect Angular migrations to work with community well known custom builders (such as
@angular-builders/custom-webpack
orngx-build-plus
), ideally it should work for any custom builders. Maybe migrations should not be checking only@angular-devkit/build-angular
builders?Minimal Reproduction
"builder": "@angular-builders/custom-webpack:karma",
for "test" architect inangular.json
fileng update @angular/cli
Exception or Error
Main karma file is not updated, but it should be updated.
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: