diff --git a/scripts/hooks.bat b/scripts/hooks.bat new file mode 100644 index 00000000..52d69010 --- /dev/null +++ b/scripts/hooks.bat @@ -0,0 +1,16 @@ +@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