GHHG10's picture
download
raw
338 Bytes
#!/bin/sh
if [ ! -d ".git" ]; then
exit 0
fi
mkdir -p .git/hooks
cat > .git/hooks/pre-push << 'EOF'
#!/bin/sh
# Ensure dependencies are installed before typecheck
if command -v bun >/dev/null 2>&1; then
bun install >/dev/null 2>&1 || true
fi
bun run typecheck
EOF
chmod +x .git/hooks/pre-push
echo "✅ Pre-push hook installed"

Xet Storage Details

Size:
338 Bytes
·
Xet hash:
2afee80462181ca40db3716b8f38cae78d67f0232dea22061ee5fe5f2656bc26

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.