traceAffected
traceAffected(
graph,changedFiles,storyFiles,options?):string[] |null
Defined in: trace.ts:176
Trace changed files through the dependency graph to story files.
Parameters
Section titled “Parameters”Bidirectional module graph of the built Storybook.
changedFiles
Section titled “changedFiles”string[]
Repo-relative changed files.
storyFiles
Section titled “storyFiles”readonly string[]
Normalized story import paths from the story index.
options?
Section titled “options?”TraceOptions = {}
Untraced globs excluded from tracing.
Returns
Section titled “Returns”string[] | null
Affected story files, or null when everything must render.