mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00

Create an equivalent of scripts/hooks for non-WSL Windows. This fixes errors in 'bun install'.
16 lines
228 B
Batchfile
16 lines
228 B
Batchfile
@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
|