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

Commit a6c5472

Browse files
hanslfilipesilva
authored andcommitted
fix(@schematics/angular): v6 migration should keep packageManager
Fix angular/angular-cli#10225
1 parent f6e9c0f commit a6c5472

File tree

1 file changed

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

1 file changed

+7
-2
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,13 @@ function migrateConfiguration(oldConfig: CliConfig): Rule {
9999
};
100100
}
101101

102-
function extractCliConfig(_config: CliConfig): JsonObject | null {
103-
return null;
102+
function extractCliConfig(config: CliConfig): JsonObject | null {
103+
const newConfig: JsonObject = {};
104+
if (config.packageManager && config.packageManager !== 'default') {
105+
newConfig['packageManager'] = config.packageManager;
106+
}
107+
108+
return newConfig;
104109
}
105110

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

0 commit comments

Comments
 (0)