@baseplate-dev/core-generators
Version:
Core generators for Baseplate
20 lines • 968 B
TypeScript
export interface PathRootsProvider {
/**
* Register a path root that will be written to the paths-root metadata if template metadata is enabled.
*
* @param pathRootName - The name of the path root e.g. `feature-root`.
* @param outputRelativePath - The relative path to the output directory e.g. `@/src/features/feature-root`.
*/
registerPathRoot(pathRootName: string, outputRelativePath: string): void;
}
export declare const pathRootsProvider: import("@baseplate-dev/sync").ProviderType<PathRootsProvider>;
/**
* Metadata generator for path roots that writes the metadata
* for path roots to the base of the project.
*/
export declare const pathRootsGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
main: import("@baseplate-dev/sync").GeneratorTask<{
pathRoots: import("@baseplate-dev/sync").ProviderExport<PathRootsProvider>;
}, {}, any>;
}>;
//# sourceMappingURL=path-roots.generator.d.ts.map