mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
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:
parent
a2d3b9f0c8
commit
6bc32551a0
1 changed files with 16 additions and 0 deletions
16
scripts/hooks.bat
Normal file
16
scripts/hooks.bat
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue