Skip to content

Commit 1e4cf9d

Browse files
committed
add the actual cycle to the build output
1 parent 4583f62 commit 1e4cf9d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/default-rules/circular-dependencies

src/default-rules/circular-dependencies/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ const createUserOutput = (
5353
cycleGraph: graphlib.Graph,
5454
cycle: string[],
5555
): string =>
56-
`cyclic root folder: ${commonPrefix}${EOL}${dot.write(cycleGraph)}${EOL}${cycle.join(' -> ')}`;
56+
`cyclic root folder: ${commonPrefix}${EOL}${dot.write(cycleGraph)}${EOL}Cycle:${cycle.join(
57+
' -> ',
58+
)}`;
5759

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

0 commit comments

Comments
 (0)