summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hooks.bat16
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