UNPKG

histoire

Version:

A fast story book powered by Vite

19 lines • 877 B
import type { HistoireBuildInfo } from '@histoire/shared'; import type { Context } from '../context.js'; /** Testable project readers; production uses bounded git subprocesses. */ interface BuildInfoReaders { /** Package manifest reader. */ readPackage?: () => Promise<{ version?: unknown; }>; /** Git argument array, executed without a shell. */ git?: (args: string[]) => Promise<string>; /** Generation timestamp factory. */ now?: () => string; } /** Collect optional metadata without requiring git or a package manifest. */ export declare function collectWorkbenchBuildInfo(ctx: Context, readers?: BuildInfoReaders): Promise<HistoireBuildInfo>; /** Virtual module shares metadata with generated histoire.json. */ export declare function resolvedBuildInfo(ctx: Context): Promise<string>; export {}; //# sourceMappingURL=build-info.d.ts.map