fix(hooks): abort the commit when npm test fails

pre-commit ran lint-staged and npm test but never checked their exit
codes, so a failing suite still produced a commit. set -e makes any
failing step abort.
This commit is contained in:
Alex Verkhovsky
2026-08-19 04:26:07 -07:00
parent 8afd1c3257
commit df8f245010
+1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
set -e
# Auto-fix changed files and stage them
npx --no-install lint-staged