@launchql/core
Version:
LaunchQL Package and Migration Tools
30 lines (29 loc) • 1.09 kB
TypeScript
import { BoilerplateQuestion } from './boilerplate-types';
export type TemplateKind = 'workspace' | 'module';
export interface ScaffoldTemplateOptions {
type: TemplateKind;
outputDir: string;
templateRepo?: string;
branch?: string;
templatePath?: string;
answers: Record<string, any>;
noTty?: boolean;
cacheTtlMs?: number;
toolName?: string;
cwd?: string;
cacheBaseDir?: string;
/** Override the boilerplate directory (e.g., "default", "supabase") */
dir?: string;
}
export interface ScaffoldTemplateResult {
cacheUsed: boolean;
cacheExpired: boolean;
cachePath?: string;
templateDir: string;
/** Questions loaded from .boilerplate.json, if any */
questions?: BoilerplateQuestion[];
}
export declare const DEFAULT_TEMPLATE_REPO = "https://github.com/constructive-io/pgpm-boilerplates.git";
export declare const DEFAULT_TEMPLATE_TTL_MS: number;
export declare const DEFAULT_TEMPLATE_TOOL_NAME = "pgpm";
export declare function scaffoldTemplate(options: ScaffoldTemplateOptions): Promise<ScaffoldTemplateResult>;