mergers-game/.githooks/pre-commit
Mike Isom 096f8cc54b Acquire for boardgamers.space
Rules engine and viewer implementing the BGS Engine and Viewer APIs,
with tests, a local test page, registration guide and admin-panel
content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 09:54:46 -06:00

7 lines
245 B
Bash

#!/bin/sh
# Blocks the commit unless pnpm check passes. Enable with: git config core.hooksPath .githooks
cd "$(git rev-parse --show-toplevel)" || exit 1
if ! pnpm check; then
echo "pre-commit: pnpm check failed; commit blocked." >&2
exit 1
fi