app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

check-source.mjs (404B)


      1 import { fileURLToPath } from 'node:url';
      2 import { auditSource } from './source-boundaries.mjs';
      3 
      4 const root = fileURLToPath(new URL('../', import.meta.url));
      5 try {
      6   const findings = await auditSource(root);
      7   if (findings.length) throw new Error(findings.join('\n'));
      8   console.log('Source style/import boundaries: checked');
      9 } catch (error) {
     10   console.error(error.message);
     11   process.exitCode = 1;
     12 }