File tree 1 file changed +16
-3
lines changed
packages/angular/cli/src/commands/update
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -387,16 +387,29 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
387
387
logger . info ( ' ' + description . join ( '.\n ' ) ) ;
388
388
}
389
389
390
- const result = await this . executeSchematic (
390
+ const { success , files } = await this . executeSchematic (
391
391
workflow ,
392
392
migration . collection . name ,
393
393
migration . name ,
394
394
) ;
395
- if ( ! result . success ) {
395
+ if ( ! success ) {
396
396
return 1 ;
397
397
}
398
398
399
- logger . info ( ' Migration completed.' ) ;
399
+ let modifiedFilesText : string ;
400
+ switch ( files . size ) {
401
+ case 0 :
402
+ modifiedFilesText = 'No changes made' ;
403
+ break ;
404
+ case 1 :
405
+ modifiedFilesText = '1 file modified' ;
406
+ break ;
407
+ default :
408
+ modifiedFilesText = `${ files . size } files modified` ;
409
+ break ;
410
+ }
411
+
412
+ logger . info ( ` Migration completed (${ modifiedFilesText } ).` ) ;
400
413
401
414
// Commit migration
402
415
if ( commit ) {
You can’t perform that action at this time.
0 commit comments