Skip to content

Commit

Permalink
fix(@schematics/angular): application migration should migrate ng-pac…
Browse files Browse the repository at this point in the history
…kagr builder package

The `use-application-builder` update migration will now attempt to migrate
the `ng-packagr` builder to use the `@angular/build` package if no other
`@angular-devkit/build-angular` usage is present.
  • Loading branch information
clydin committed Jan 8, 2025
1 parent d2c7440 commit e24994e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ function updateProjects(tree: Tree, context: SchematicContext) {
case Builders.Application:
case Builders.DevServer:
case Builders.ExtractI18n:
case Builders.NgPackagr:
// Ignore application, dev server, and i18n extraction for devkit usage check.
// Both will be replaced if no other usage is found.
continue;
Expand All @@ -239,6 +240,9 @@ function updateProjects(tree: Tree, context: SchematicContext) {
case Builders.ExtractI18n:
target.builder = '@angular/build:extract-i18n';
break;
case Builders.NgPackagr:
target.builder = '@angular/build:ng-packagr';
break;
}
}

Expand Down

0 comments on commit e24994e

Please sign in to comment.