Skip to content

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

lint: skip lockfiles by name, not every path that contains 'lock'

Leonxlnxa0b2a4fc662f
diff --git a/skills/taste-skill/scripts/lint.mjs b/skills/taste-skill/scripts/lint.mjs
index 3d2ca71..9277761 100644
--- a/skills/taste-skill/scripts/lint.mjs
+++ b/skills/taste-skill/scripts/lint.mjs
@@ -24,7 +24,7 @@ const files = []; const tooBig = [];
const walk = (p) => {
let st; try { st = statSync(p); } catch { return; }
if (st.isDirectory()) { for (const f of readdirSync(p)) if (!SKIP.has(f) && !f.startsWith('.')) walk(join(p, f)); }
- else if (EXT.has(extname(p)) && !/\.min\.|lock|\.d\.ts$/.test(p)) { if (st.size < 4000000) files.push(p); else tooBig.push(p); }
+ else if (EXT.has(extname(p)) && !/\.min\.|\.d\.ts$|(^|[\\/])(package-lock\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb?|[^\\/]+\.lock)$/.test(p)) { if (st.size < 4000000) files.push(p); else tooBig.push(p); }
};
for (const r of roots) {
try { statSync(resolve(r)); } catch { console.error(`Not found: ${r}`); process.exit(2); }