diff options
| author | Dax Raad <[email protected]> | 2025-06-19 00:20:03 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-19 00:20:03 -0400 |
| commit | 3862184ccbe0f7a56e96fe7509da39f094931adb (patch) | |
| tree | 0391b3ba32b5fb05cf61a14ff45da122f2ab3d42 /scripts | |
| parent | 8619c50976be4e7385f2253eb6bfe468aef94abf (diff) | |
| download | opencode-3862184ccbe0f7a56e96fe7509da39f094931adb.tar.gz opencode-3862184ccbe0f7a56e96fe7509da39f094931adb.zip | |
hooks
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/hooks | 15 | ||||
| -rwxr-xr-x | scripts/snapshot | 3 |
2 files changed, 15 insertions, 3 deletions
diff --git a/scripts/hooks b/scripts/hooks new file mode 100755 index 000000000..e5226e42d --- /dev/null +++ b/scripts/hooks @@ -0,0 +1,15 @@ +#!/bin/bash + +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" diff --git a/scripts/snapshot b/scripts/snapshot deleted file mode 100755 index 0f36e225f..000000000 --- a/scripts/snapshot +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -set -e -goreleaser build --clean --snapshot --skip validate |
