summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorDax <[email protected]>2025-06-24 18:05:04 -0400
committerGitHub <[email protected]>2025-06-24 18:05:04 -0400
commitec001ca02fc96e11446cdad49844d0ddc70637b4 (patch)
treebe40d72abc13054417f308ad4558a8f8c1128142 /scripts
parenta2d3b9f0c83a8ef9ed88efab2703ae436eac71b6 (diff)
downloadopencode-ec001ca02fc96e11446cdad49844d0ddc70637b4.tar.gz
opencode-ec001ca02fc96e11446cdad49844d0ddc70637b4.zip
windows fixes (#374)
Co-authored-by: Matthew Glazar <[email protected]>
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