hooks-configs/hook-build-check
Verify the project builds successfully before committing
Pre-commit hook that validates the project builds without errors. Catches build-breaking changes before they're committed. Configurable for different build systems.
Content
{
"hooks": {
"pre-commit": [
{
"name": "build-check",
"command": "npm run build",
"description": "Verify project builds successfully",
"timeout": 120000
}
]
}
}Details
| Category | hooks-configs |
| Tags | devopspre-commitautomationintermediate |
| License | MIT |
| Author | Claude Code Directory |
| Difficulty | intermediate |
Pairs with
hooks-configs/hook-test-runner
Run tests related to changed files before committing
hooks-configs/hook-security-audit
Check for dependency vulnerabilities before committing
hooks-configs/hook-typescript-check
Validate TypeScript types before committing
hooks-configs/hook-commit-message
Enforce conventional commit message format