Skip to content

Commit a7bc12b

Browse files
committed
Replace entry symbol in trace output (circle → enter)
1 parent 9971d47 commit a7bc12b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/knip/src/util/trace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const formatTrace = (
1616
const fail = pc.red;
1717
const dim = pc.dim;
1818

19-
const entryMarker = node.isEntry ? dim(' ') : '';
19+
const entryMarker = node.isEntry ? dim(' ') : '';
2020
lines.push(`${file(toRelative(node.filePath))}${dim(':')}${id(node.identifier)}${entryMarker}`);
2121

2222
const formatVia = (child: ExportsTreeNode): string => {
@@ -31,7 +31,7 @@ export const formatTrace = (
3131
const formatChild = (child: ExportsTreeNode, prefix: string, isLast: boolean) => {
3232
const connector = isLast ? '└── ' : '├── ';
3333
const childPrefix = isLast ? ' ' : '│ ';
34-
const entryMarker = child.isEntry ? dim(' ') : '';
34+
const entryMarker = child.isEntry ? dim(' ') : '';
3535
const isLeaf = child.children.length === 0;
3636
const leafMarker = isLeaf && !child.via?.startsWith('reExport') ? (isReferenced ? ok(' ✓') : fail(' ✗')) : '';
3737

0 commit comments

Comments
 (0)