#!/usr/bin/env bash # Run before pushing — catches TypeScript errors without a full build. set -e cd "$(dirname "$0")" echo "→ TypeScript check…" npm run typecheck echo "✓ No type errors."