Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 8db7b64

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

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

+1-1
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)