@supernovaio/cli
Version:
Supernova.io Command Line Interface
21 lines • 761 B
TypeScript
export interface TemplateInfo {
description: string;
files: string[];
name: string;
thumbnail?: string;
}
interface ItemsObject {
[itemKey: string]: TemplateInfo;
}
export declare function folderNameToDisplayName(folderName: string): string;
export declare function discoverTemplatesAndPatterns(basePath?: string): Promise<{
templates: ItemsObject;
patterns: ItemsObject;
}>;
export declare function discoverFilesForTemplates(pkgTemplates: Record<string, Pick<TemplateInfo, "name" | "description">>, basePath?: string): Promise<ItemsObject>;
export declare function discoverAndUpdatePackageJson(basePath?: string): Promise<{
templates: ItemsObject;
patterns: ItemsObject;
}>;
export {};
//# sourceMappingURL=discover.d.ts.map