#!/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
