@t1mmen/srtd
Version:
Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀
12 lines • 485 B
JavaScript
/**
* Check if a template path contains the WIP indicator.
* Uses the wipIndicator from the already-loaded config to ensure consistency.
*
* @param templatePath - The path to the template file
* @param wipIndicator - The WIP indicator string from config (e.g., '.wip')
* @returns true if the path contains the WIP indicator
*/
export function isWipTemplate(templatePath, wipIndicator) {
return templatePath.includes(wipIndicator);
}
//# sourceMappingURL=isWipTemplate.js.map