Skip to content

Commit 1d3356e

Browse files
committed
fix(@schematics/angular): if no property set on cli config dont migrate it
1 parent a292004 commit 1d3356e

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/migrations/update-6

1 file changed

+1
-1
lines changed

packages/schematics/angular/migrations/update-6/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function extractCliConfig(config: CliConfig): JsonObject | null {
106106
newConfig['packageManager'] = config.packageManager;
107107
}
108108

109-
return newConfig;
109+
return Object.getOwnPropertyNames(newConfig).length == 0 ? null : newConfig;
110110
}
111111

112112
function extractSchematicsConfig(config: CliConfig): JsonObject | null {

0 commit comments

Comments
 (0)