Skip to content

Commit

Permalink
add the actual cycle to the build output
Browse files Browse the repository at this point in the history
  • Loading branch information
pravliv committed Mar 21, 2024
1 parent 4583f62 commit 1e4cf9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/default-rules/circular-dependencies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const createUserOutput = (
cycleGraph: graphlib.Graph,
cycle: string[],
): string =>
`cyclic root folder: ${commonPrefix}${EOL}${dot.write(cycleGraph)}${EOL}${cycle.join(' -> ')}`;
`cyclic root folder: ${commonPrefix}${EOL}${dot.write(cycleGraph)}${EOL}Cycle:${cycle.join(
' -> ',
)}`;

const createMappedCycleMessage = (cycle: string[], mapping: Mapping, graph: graphlib.Graph) => {
const cycleGraph = new graphlib.Graph();
Expand Down

0 comments on commit 1e4cf9d

Please sign in to comment.