13 lines
484 B
Bash
Executable File
13 lines
484 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$(dirname "$0")/_/husky.sh"
|
|
|
|
# The hook documentation: https://git-scm.com/docs/githooks.html#_post_merge
|
|
|
|
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
|