Skip to content

Commit 82a977b

Browse files
Merge pull request #129 from guardian/chore/add-bun-install-post-merge-hook
Quality of life: Auto-run bun install when git pull or git merge is run locally
2 parents fb34b7b + 5068eb2 commit 82a977b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lefthook.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ pre-push:
1313
typecheck:
1414
glob: '**/*.{ts,tsx}'
1515
run: bun run typecheck
16+
17+
# Runs after `git pull`/`git merge`. Tell the user dependencies changed,
18+
# but only when the merge actually touched the lockfile or a package.json.
19+
post-merge:
20+
commands:
21+
install:
22+
glob: '{bun.lock,**/package.json}'
23+
run: printf '\033[0;31mDependencies have changed, please run "bun install"\033[0m\n'

0 commit comments

Comments
 (0)