@quenty/nevermore-template-helpers
Version:
Helpers to generate Nevermore package and game templates
15 lines • 734 B
TypeScript
/**
* Resolve a template path relative to the calling package's `templates/` directory.
*
* @param callerUrl - Pass `import.meta.url` from the calling module
* @param name - Template name (can include subdirectory, e.g. 'default-test-place/default.project.json')
*/
export declare function resolveTemplatePath(callerUrl: string, name: string): string;
/**
* Resolve a path relative to the calling package's root directory.
*
* @param callerUrl - Pass `import.meta.url` from the calling module
* @param segments - Path segments to join (e.g. 'build-scripts', 'transform.luau')
*/
export declare function resolvePackagePath(callerUrl: string, ...segments: string[]): string;
//# sourceMappingURL=resolve-template-path.d.ts.map