hooks 204 B

123456789101112131415
  1. #!/bin/sh
  2. if [ ! -d ".git" ]; then
  3. exit 0
  4. fi
  5. mkdir -p .git/hooks
  6. cat > .git/hooks/pre-push << 'EOF'
  7. #!/bin/sh
  8. bun run typecheck
  9. EOF
  10. chmod +x .git/hooks/pre-push
  11. echo "✅ Pre-push hook installed"