Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
338 B · 19 lines
1234567891011121314151617181920#!/bin/sh
if [ ! -d ".git" ]; then exit 0fi
mkdir -p .git/hooks
cat > .git/hooks/pre-push << 'EOF'#!/bin/sh# Ensure dependencies are installed before typecheckif command -v bun >/dev/null 2>&1; then bun install >/dev/null 2>&1 || truefibun run typecheckEOF
chmod +x .git/hooks/pre-pushecho "✅ Pre-push hook installed"