Skip to content

traceAffected

traceAffected(graph, changedFiles, storyFiles, options?): string[] | null

Defined in: trace.ts:176

Trace changed files through the dependency graph to story files.

DepGraph

Bidirectional module graph of the built Storybook.

string[]

Repo-relative changed files.

readonly string[]

Normalized story import paths from the story index.

TraceOptions = {}

Untraced globs excluded from tracing.

string[] | null

Affected story files, or null when everything must render.