2024-08-02 09:08:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-03-18 11:45:14 +00:00
|
|
|
. "$(dirname "$0")/_/husky.sh"
|
|
|
|
|
2024-09-18 09:10:11 +00:00
|
|
|
# The hook documentation: https://git-scm.com/docs/githooks.html#_post_merge
|
|
|
|
|
2024-08-02 09:08:54 +00:00
|
|
|
changedManifests=$( ( git diff --name-only HEAD ORIG_HEAD | grep -E '(package.json|pnpm-lock.yaml|pnpm-workspace.yaml|composer.json|composer.lock)$' ) || echo '' )
|
|
|
|
if [ -n "$changedManifests" ]; then
|
|
|
|
printf "It was a change in the following file(s) - refreshing dependencies:\n"
|
|
|
|
printf " %s\n" $changedManifests
|
|
|
|
|
|
|
|
pnpm install --frozen-lockfile
|
|
|
|
fi
|