From e77fd7abd568daca23456236d8d212ffd061392e Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 11 Jan 2023 08:58:22 +0000 Subject: [PATCH] fix(@angular/cli): remove `--to` option from being required when using `--from` in `ng update` This change remove the requirement for the `to` option to be provided when using the `from` option in conjunction with `migrate-only`. Closes #24510 --- packages/angular/cli/src/commands/update/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/cli/src/commands/update/cli.ts b/packages/angular/cli/src/commands/update/cli.ts index cfa32dd36f33..118f6ae15bb6 100644 --- a/packages/angular/cli/src/commands/update/cli.ts +++ b/packages/angular/cli/src/commands/update/cli.ts @@ -102,7 +102,7 @@ export class UpdateCommandModule extends CommandModule { 'Version from which to migrate from. ' + `Only available with a single package being updated, and only with 'migrate-only'.`, type: 'string', - implies: ['to', 'migrate-only'], + implies: ['migrate-only'], conflicts: ['name'], }) .option('to', {