@@ -69,9 +69,12 @@ export async function typed(analysis: core.Analysis, opts: Opts) {
6969 return chalk . bold [ color ] ( entrypointNames [ i ] ) ;
7070 } ) ;
7171
72- const getCellContents = memo ( ( entrypoint : string , resolutionKind : core . ResolutionKind ) => {
73- const problemsForCell = groupProblemsByKind ( filterProblems ( problems , analysis , { entrypoint, resolutionKind } ) ) ;
74- const resolution = analysis . entrypoints [ entrypoint ] . resolutions [ resolutionKind ] . resolution ;
72+ const getCellContents = memo ( ( subpath : string , resolutionKind : core . ResolutionKind ) => {
73+ const problemsForCell = groupProblemsByKind (
74+ filterProblems ( problems , analysis , { entrypoint : subpath , resolutionKind } ) ,
75+ ) ;
76+ const entrypoint = analysis . entrypoints [ subpath ] . resolutions [ resolutionKind ] ;
77+ const resolution = entrypoint . resolution ;
7578 const kinds = Object . keys ( problemsForCell ) as core . ProblemKind [ ] ;
7679 if ( kinds . length ) {
7780 return kinds
@@ -80,12 +83,13 @@ export async function typed(analysis: core.Analysis, opts: Opts) {
8083 }
8184
8285 const jsonResult = ! opts . emoji ? "OK (JSON)" : "🟢 (JSON)" ;
83- const moduleResult =
84- ( ! opts . emoji ? "OK " : "🟢 " ) +
85- moduleKinds [
86- analysis . programInfo [ getResolutionOption ( resolutionKind ) ] . moduleKinds ?. [ resolution ?. fileName ?? "" ]
87- ?. detectedKind || ""
88- ] ;
86+ const moduleResult = entrypoint . isWildcard
87+ ? "(wildcard)"
88+ : ( ! opts . emoji ? "OK " : "🟢 " ) +
89+ moduleKinds [
90+ analysis . programInfo [ getResolutionOption ( resolutionKind ) ] . moduleKinds ?. [ resolution ?. fileName ?? "" ]
91+ ?. detectedKind || ""
92+ ] ;
8993 return resolution ?. isJson ? jsonResult : moduleResult ;
9094 } ) ;
9195
0 commit comments