Skip to content

Commit

Permalink
feat(@angular/cli): log number of files update during ng update
Browse files Browse the repository at this point in the history
This commit updates `ng update` to include the number of files updated when a migration is completed.

Closes angular#24488
  • Loading branch information
alan-agius4 committed Jan 18, 2023
1 parent c3adf11 commit c15708d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/angular/cli/src/commands/update/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,16 @@ export class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
logger.info(' ' + description.join('.\n '));
}

const result = await this.executeSchematic(
const { success, files } = await this.executeSchematic(
workflow,
migration.collection.name,
migration.name,
);
if (!result.success) {
if (!success) {
return 1;
}

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

// Commit migration
if (commit) {
Expand Down

0 comments on commit c15708d

Please sign in to comment.