Git Hook post-merge if changed package.json, run np install & npm prune
#/usr/bin/env bash
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep -E --quiet "$1" && eval "$2"
}
check_run package.json "npm install && npm prune"