mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ignore: python sdk (#2779)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
parent
fc8db6cdf9
commit
0e60f66604
229 changed files with 22322 additions and 8 deletions
19
script/hooks
Executable file
19
script/hooks
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -d ".git" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p .git/hooks
|
||||
|
||||
cat > .git/hooks/pre-push << 'EOF'
|
||||
#!/bin/sh
|
||||
# Ensure dependencies are installed before typecheck
|
||||
if command -v bun >/dev/null 2>&1; then
|
||||
bun install >/dev/null 2>&1 || true
|
||||
fi
|
||||
bun run typecheck
|
||||
EOF
|
||||
|
||||
chmod +x .git/hooks/pre-push
|
||||
echo "✅ Pre-push hook installed"
|
||||
Loading…
Add table
Add a link
Reference in a new issue