fix(scripts): add Git hook for Windows

Create an equivalent of scripts/hooks for non-WSL Windows. This fixes
errors in 'bun install'.
This commit is contained in:
Matthew Glazar 2025-06-22 18:40:20 -04:00 committed by Dax Raad
parent a2d3b9f0c8
commit 6bc32551a0

16
scripts/hooks.bat Normal file
View file

@ -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