chore: clean up git hooks and actually install them again.

This commit is contained in:
cpojer
2026-02-03 22:07:43 +09:00
parent 6fb2d3d7d7
commit 6b83d82e82
8 changed files with 7 additions and 373 deletions

View File

@@ -1,4 +1,7 @@
#!/bin/sh
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
[ -z "$ROOT" ] && exit 0
node "$ROOT/scripts/format-staged.js"
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0
echo "$FILES" | xargs pnpm format:fix --no-error-on-unmatched-pattern
echo "$FILES" | xargs git add
exit 0