managarten/.husky/pre-push
Wuesteon 47881ae410 feat(husky): add helpful error messages to git hooks
- Add clear error messages when pre-commit checks fail
- Add clear error messages when pre-push builds fail
- Explicitly warn against using --no-verify flag
- Encourage developers to fix issues rather than bypass checks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-17 18:39:41 +01:00

12 lines
413 B
Text
Executable file

# Run production build check before push
# This catches npm package incompatibilities and Docker issues before CI/CD
./scripts/build-changed-apps.sh || {
echo ""
echo "❌ Production build check failed!"
echo ""
echo "Please fix the build errors above before pushing."
echo "These errors will cause CI/CD to fail."
echo "Do NOT use 'git push --no-verify' to bypass these checks."
echo ""
exit 1
}