Files
opencode-multi-model/.githooks/post-checkout
T

9 lines
334 B
Bash
Executable File

#!/usr/bin/env bash
# Post-checkout hook to run bun install when switching branches or checking out files
# This ensures dependencies are always up to date
# Only run if package.json or bun.lock exist (indicating a Node/Bun project)
if [ -f "package.json" ] || [ -f "bun.lock" ]; then
echo "Running bun install..."
bun install
fi