Skip to content

Commit 9d7db9e

Browse files
committed
fix(@schematics/angular): silently skip when the build target already uses one of the new builders
1 parent 18cf6c5 commit 9d7db9e

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ function updateProjects(tree: Tree, context: SchematicContext) {
178178
continue;
179179
}
180180

181+
if (buildTarget.builder.startsWith('@angular/build')) {
182+
// Already using @angular/build builders
183+
continue;
184+
}
185+
181186
if (
182187
buildTarget.builder !== Builders.BrowserEsbuild &&
183188
buildTarget.builder !== Builders.Browser

0 commit comments

Comments
 (0)