Skip to content

Commit be67977

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular/cli): remove incorrect warning during ng update
The `next` option is not ignored when using the `migrate-only` option. This option is used to determine if a newer version of the CLI needs to be downloaded. https://github.com/angular/angular-cli/blob/3d76cef369b936a6d01108802cfe7dabca602f2e/packages/angular/cli/src/commands/update/cli.ts#L876
1 parent 3d76cef commit be67977

File tree

1 file changed

+1
-5
lines changed
  • packages/angular/cli/src/commands/update

1 file changed

+1
-5
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
130130
alias: ['C'],
131131
default: false,
132132
})
133-
.check(({ packages, next, 'allow-dirty': allowDirty, 'migrate-only': migrateOnly }) => {
133+
.check(({ packages, 'allow-dirty': allowDirty, 'migrate-only': migrateOnly }) => {
134134
const { logger } = this.context;
135135

136136
// This allows the user to easily reset any changes from the update.
@@ -152,10 +152,6 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
152152
`A single package must be specified when using the 'migrate-only' option.`,
153153
);
154154
}
155-
156-
if (next) {
157-
logger.warn(`'next' option has no effect when using 'migrate-only' option.`);
158-
}
159155
}
160156

161157
return true;

0 commit comments

Comments
 (0)