diff options
Diffstat (limited to 'scripts/hooks.bat')
| -rw-r--r-- | scripts/hooks.bat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/hooks.bat b/scripts/hooks.bat new file mode 100644 index 000000000..52d690100 --- /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
|
