@nozomiishii/lefthook-config
Version:
Nozomi's Recommended lefthook config
14 lines (12 loc) • 497 B
YAML
post-merge:
commands:
# If you have set 'git config pull.rebase true', use the 'post-rewrite' hook instead of the 'post-merge' hook.
update-node-modules:
files: git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD
glob: '**/{package.json,pnpm-lock.yaml,yarn.lock,package-lock.json}'
run: |
if ! command -v ni > /dev/null 2>&1; then
echo "🥊 @antfu/ni doesn't exist, continuing with install"
npm i -g @antfu/ni
fi
ni