Skip to content

Commit 6f29a8c

Browse files
committed
fix(@angular/cli): renamed files by their new path in the schematic workflow
Prior to this change, the old filename was being tracked.
1 parent d4bc25c commit 6f29a8c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/angular/cli/src/command-builder/utilities/schematic-workflow.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ export function subscribeToWorkflow(
5555
logs.push(`${colors.yellow('DELETE')} ${eventPath}`);
5656
files.add(eventPath);
5757
break;
58-
case 'rename':
59-
logs.push(`${colors.blue('RENAME')} ${eventPath} => ${removeLeadingSlash(event.to)}`);
60-
files.add(eventPath);
58+
case 'rename': {
59+
const newFilename = removeLeadingSlash(event.to);
60+
61+
logs.push(`${colors.blue('RENAME')} ${eventPath} => ${newFilename}`);
62+
files.add(newFilename);
63+
6164
break;
65+
}
6266
}
6367
});
6468

0 commit comments

Comments
 (0)