@snevins/repo-mapper 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/output.js +1 -1
- package/package.json +1 -1
package/dist/output.js
CHANGED
|
@@ -222,7 +222,7 @@ export function formatOutput(defs, graph, fileRanks, focusFiles, maxFilesPerModu
|
|
|
222
222
|
continue;
|
|
223
223
|
const fileRank = fileRanks.get(file) ?? 0;
|
|
224
224
|
const deps = getFileDependents(file, graph);
|
|
225
|
-
const depsStr = deps.length > 0 ? ` (used-by: ${deps.slice(0,
|
|
225
|
+
const depsStr = deps.length > 0 ? ` (used-by: ${deps.slice(0, 10).join(", ")}${deps.length > 10 ? ", ..." : ""})` : "";
|
|
226
226
|
lines.push(`${file}: ${formatRankDisplay(fileRank, allRanks)}${depsStr}`);
|
|
227
227
|
// Sort definitions by line ascending
|
|
228
228
|
const sorted = [...fileDefs].sort((a, b) => a.tag.line - b.tag.line);
|