mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-08-28 19:20:41 +08:00
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:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
# Auto-fix changed files and stage them
|
||||
npx --no-install lint-staged
|
||||
|
||||
Reference in New Issue
Block a user