f
getChangedFiles(): Set<string>
metafile: AffectedMetafile,
esbuildCwd: string,
changedAbsPaths: ReadonlySet<string>,
testFiles: readonly string[]
Returns the subset of testFiles (absolute paths) whose transitive imports,
per the cached esbuild metafile, include any file in changedAbsPaths.
I
AffectedMetafile
Subset of esbuild's Metafile shape that we actually read. Defined locally so
this module doesn't import the heavy esbuild package — it only parses a
JSON file that esbuild produced earlier.
-
inputs: Record<string, { imports?: Array<{ path: string; }>; }>
Every input file esbuild visited, keyed by path relative to esbuild's cwd.
Usage
import * as mod from "lib/utils/get-changed-files.ts";