Skip to content

Commit c15708d

Browse files
committed
feat(@angular/cli): log number of files update during ng update
This commit updates `ng update` to include the number of files updated when a migration is completed. Closes #24488
1 parent c3adf11 commit c15708d

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,16 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
387387
logger.info(' ' + description.join('.\n '));
388388
}
389389

390-
const result = await this.executeSchematic(
390+
const { success, files } = await this.executeSchematic(
391391
workflow,
392392
migration.collection.name,
393393
migration.name,
394394
);
395-
if (!result.success) {
395+
if (!success) {
396396
return 1;
397397
}
398398

399-
logger.info(' Migration completed.');
399+
logger.info(` Migration completed (${files.size} files modified).`);
400400

401401
// Commit migration
402402
if (commit) {

0 commit comments

Comments
 (0)