Skip to content

Commit 88431b7

Browse files
committed
fix(@schematics/angular): application migration should migrate ng-packagr 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.
1 parent 02825ee commit 88431b7

File tree

1 file changed

+4
-0
lines changed
  • packages/schematics/angular/migrations/use-application-builder

1 file changed

+4
-0
lines changed

packages/schematics/angular/migrations/use-application-builder/migration.ts

+4
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ function updateProjects(tree: Tree, context: SchematicContext) {
215215
case Builders.Application:
216216
case Builders.DevServer:
217217
case Builders.ExtractI18n:
218+
case Builders.NgPackagr:
218219
// Ignore application, dev server, and i18n extraction for devkit usage check.
219220
// Both will be replaced if no other usage is found.
220221
continue;
@@ -239,6 +240,9 @@ function updateProjects(tree: Tree, context: SchematicContext) {
239240
case Builders.ExtractI18n:
240241
target.builder = '@angular/build:extract-i18n';
241242
break;
243+
case Builders.NgPackagr:
244+
target.builder = '@angular/build:ng-packagr';
245+
break;
242246
}
243247
}
244248

0 commit comments

Comments
 (0)