Files
rea/scripts/lib/generated-file.d.mts
N0zoM1z0 beb9ece7d1 build: add canonical product catalog and docs drift checks
Derive package, tool-family, provider, setup-client, schema-version, and CLI facts from the runtime contract sources into a deterministic checked-in catalog.

Add non-mutating generated-file checks, exact TypeDoc regenerate-and-compare validation, caller-visible documentation fact checks, and CI enforcement through docs:check.

Cover command-router parity, source-derived catalog values, deliberate documentation drift, and stale generated artifacts while preserving runtime behavior.
2026-07-15 17:43:52 +08:00

11 lines
271 B
TypeScript

export interface GeneratedFileOptions {
readonly path: string;
readonly source: string;
readonly check: boolean;
readonly generateCommand: string;
}
export function ensureGeneratedFile(
options: GeneratedFileOptions,
): Promise<{ readonly changed: boolean }>;