mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
build: Add post-checkout hook to run bun install
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user