mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 21:52:11 +00:00
9 lines
334 B
Bash
Executable File
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 |