opencode/scripts/hooks.bat
Matthew Glazar 6bc32551a0 fix(scripts): add Git hook for Windows
Create an equivalent of scripts/hooks for non-WSL Windows. This fixes
errors in 'bun install'.
2025-06-24 17:59:52 -04:00

16 lines
228 B
Batchfile

@echo off
if not exist ".git" (
exit /b 0
)
if not exist ".git\hooks" (
mkdir ".git\hooks"
)
(
echo #!/bin/sh
echo bun run typecheck
) > ".git\hooks\pre-push"
echo ✅ Pre-push hook installed