File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/angular/cli/src/commands/update Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
70
70
return localYargs
71
71
. positional ( 'packages' , {
72
72
description : 'The names of package(s) to update.' ,
73
- coerce : ( value ) => ( typeof value === 'string' ? [ value ] : value ) as string [ ] | undefined ,
73
+ type : 'string' ,
74
+ array : true ,
74
75
} )
75
76
. option ( 'force' , {
76
77
description :
@@ -872,15 +873,12 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
872
873
* @returns the version to install or null when there is no update to install.
873
874
*/
874
875
private async checkCLIVersion (
875
- packagesToUpdate : string [ ] | string | undefined ,
876
+ packagesToUpdate : string [ ] | undefined ,
876
877
verbose = false ,
877
878
next = false ,
878
879
) : Promise < string | null > {
879
880
const { version } = await fetchPackageManifest (
880
- `@angular/cli@${ this . getCLIUpdateRunnerVersion (
881
- typeof packagesToUpdate === 'string' ? [ packagesToUpdate ] : packagesToUpdate ,
882
- next ,
883
- ) } `,
881
+ `@angular/cli@${ this . getCLIUpdateRunnerVersion ( packagesToUpdate , next ) } ` ,
884
882
this . context . logger ,
885
883
{
886
884
verbose,
You can’t perform that action at this time.
0 commit comments