refactor: hide import cycle graph helpers

This commit is contained in:
Peter Steinberger
2026-05-02 07:44:26 +01:00
parent 8daf0124c9
commit 4c36e9f433

View File

@@ -11,7 +11,7 @@ export function normalizeRepoPath(filePath: string, repoRoot: string): string {
return path.relative(repoRoot, filePath).split(path.sep).join("/");
}
export function cycleSignature(files: readonly string[]): string {
function cycleSignature(files: readonly string[]): string {
return files.toSorted((left, right) => left.localeCompare(right)).join("\n");
}
@@ -90,7 +90,7 @@ export function collectStronglyConnectedComponents(
);
}
export function findCycleWitness(
function findCycleWitness(
component: readonly string[],
graph: ReadonlyMap<string, readonly string[]>,
): string[] {