@baseplate-dev/sync
Version:
Library for syncing Baseplate descriptions
19 lines • 811 B
TypeScript
export interface TryCreateExtractorJsonOptions {
packageMap: Map<string, string>;
generatorName: string;
}
/**
* Attempts to create an extractor.json file for a generator if it doesn't exist.
*
* This function searches for a generator file matching the pattern:
* `generatorPath/generatorBasename.generator.ts`
*
* If exactly one matching file is found, creates an extractor.json file
* in the same directory with the generator name.
*
* @param options - Configuration for creating the extractor.json
* @throws {Error} If no generator file is found or multiple files match
* @throws {Error} If the generator name cannot be parsed
*/
export declare function tryCreateExtractorJson(options: TryCreateExtractorJsonOptions): Promise<void>;
//# sourceMappingURL=try-create-extractor-json.d.ts.map