summaryrefslogtreecommitdiffhomepage
path: root/script/hooks.bat
blob: 52d6901006693ce6d98d578d81c3a7a357519238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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