Skip to content

Commit 6bc3255

Browse files
stragerthdxr
authored andcommitted
fix(scripts): add Git hook for Windows
Create an equivalent of scripts/hooks for non-WSL Windows. This fixes errors in 'bun install'.
1 parent a2d3b9f commit 6bc3255

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/hooks.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
3+
if not exist ".git" (
4+
exit /b 0
5+
)
6+
7+
if not exist ".git\hooks" (
8+
mkdir ".git\hooks"
9+
)
10+
11+
(
12+
echo #!/bin/sh
13+
echo bun run typecheck
14+
) > ".git\hooks\pre-push"
15+
16+
echo ✅ Pre-push hook installed

0 commit comments

Comments
 (0)