ci: scripts

This commit is contained in:
Dax Raad
2025-07-31 01:25:24 -04:00
parent 50be2aee39
commit 2d9ed06367
7 changed files with 2 additions and 2 deletions

15
script/hooks Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
if [ ! -d ".git" ]; then
exit 0
fi
mkdir -p .git/hooks
cat > .git/hooks/pre-push << 'EOF'
#!/bin/sh
bun run typecheck
EOF
chmod +x .git/hooks/pre-push
echo "✅ Pre-push hook installed"