Skip to content

Commit 359ccbe

Browse files
committed
fix(@angular/cli): let --force through to the update schematic
Fix #10149
1 parent 346a064 commit 359ccbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@angular/cli/commands/update.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export default class UpdateCommand extends SchematicCommand {
1414
public readonly scope = CommandScope.inProject;
1515
public arguments: string[] = [ 'packages' ];
1616
public options: Option[] = [
17-
...this.coreOptions,
17+
// Remove the --force flag.
18+
...this.coreOptions.filter(option => option.name !== 'force'),
1819
];
1920
public readonly allowMissingWorkspace = true;
2021

@@ -44,7 +45,7 @@ export default class UpdateCommand extends SchematicCommand {
4445
schematicName: this.schematicName,
4546
schematicOptions: options,
4647
dryRun: options.dryRun,
47-
force: options.force,
48+
force: false,
4849
workingDir: this.project.root,
4950
};
5051

0 commit comments

Comments
 (0)