many many fixes

This commit is contained in:
2026-10-26 10:06:30 -04:00
parent 79e15cb8c3
commit f1a13a3065
25 changed files with 642 additions and 9964 deletions

15
scripts/install-hooks.mjs Normal file
View File

@@ -0,0 +1,15 @@
// Points git at the repo's .githooks directory. Runs on `npm install`
// (the "prepare" script). Never fails, so installs work without git
// (e.g. CI / Nixpacks builds).
import { execSync } from 'node:child_process';
import fs from 'node:fs';
try {
if (!fs.existsSync('.git')) process.exit(0);
execSync('git config core.hooksPath .githooks', { stdio: 'ignore' });
// Make sure the hook is executable on macOS/Linux
try { fs.chmodSync('.githooks/pre-commit', 0o755); } catch {}
console.log('Git hooks installed (.githooks)');
} catch {
// git not available: skip silently
}