Skip to content

Commit b48d4d6

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

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ function updateProjects(tree: Tree, context: SchematicContext) {
174174
}
175175

176176
const buildTarget = project.targets.get('build');
177-
if (!buildTarget || buildTarget.builder === Builders.Application) {
177+
if (
178+
!buildTarget ||
179+
buildTarget.builder === Builders.Application ||
180+
buildTarget.builder === Builders.BuildApplication
181+
) {
178182
continue;
179183
}
180184

0 commit comments

Comments
 (0)