fix: re-stage prettier-formatted files in pre-commit hook

The hook ran format:fix but didn't re-stage the modified files, so
commits went through with unformatted code and CI caught the diff.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-05-09 20:26:48 +03:00
parent f33f2d89ce
commit 25a5b81c59
+1
View File
@@ -1 +1,2 @@
pnpm run format:fix
git diff --name-only -- 'src/**/*.ts' | xargs git add 2>/dev/null || true