feat(dev-infra): output the number of new and fixed cycles (#38805)
This commit adds a logic to ouput the number of new and fixed cycles after running circular dependency checker. This information is useful to better understand an impact of changes in case the number of new/fixed cycles is relatively big. PR Close #38805
This commit is contained in:
parent
95b8a8706a
commit
2d6105a784
|
@ -112,7 +112,8 @@ export function main(
|
|||
if (fixedCircularDeps.length !== 0) {
|
||||
error(yellow(` Fixed circular dependencies that need to be removed from the golden:`));
|
||||
fixedCircularDeps.forEach(c => error(` • ${convertReferenceChainToString(c)}`));
|
||||
error();
|
||||
info(yellow(`\n Total: ${newCircularDeps.length} new cycle(s), ${
|
||||
fixedCircularDeps.length} fixed cycle(s). \n`));
|
||||
if (approveCommand) {
|
||||
info(yellow(` Please approve the new golden with: ${approveCommand}`));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue