UNPKG

@t1mmen/srtd

Version:

Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀

25 lines • 859 B
import chalk from 'chalk'; import figures from 'figures'; /** * Display validation warnings from orchestrator * Shows warnings about corrupted or invalid build log files and config issues */ export function displayValidationWarnings(warnings) { if (warnings.length === 0) return; console.log(); console.log(chalk.yellow(`${figures.warning} Validation Warnings:`)); for (const w of warnings) { const sourceLabel = w.source === 'config' ? `config (${w.type})` : w.source === 'buildLog' ? 'buildLog' : 'localBuildLog'; console.log(chalk.yellow(` ${figures.arrowRight} ${sourceLabel}: ${w.message}`)); if (w.path) { console.log(chalk.dim(` Path: ${w.path}`)); } } console.log(); } //# sourceMappingURL=displayWarnings.js.map