diff options
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 |
