summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-19 00:20:03 -0400
committerDax Raad <[email protected]>2025-06-19 00:20:03 -0400
commit3862184ccbe0f7a56e96fe7509da39f094931adb (patch)
tree0391b3ba32b5fb05cf61a14ff45da122f2ab3d42 /scripts
parent8619c50976be4e7385f2253eb6bfe468aef94abf (diff)
downloadopencode-3862184ccbe0f7a56e96fe7509da39f094931adb.tar.gz
opencode-3862184ccbe0f7a56e96fe7509da39f094931adb.zip
hooks
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/hooks15
-rwxr-xr-xscripts/snapshot3
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