Skip to content

Commit

Permalink
feat: helper for never forgetting npm install on branch change (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Sep 30, 2021
1 parent ad3fb75 commit 7c0b11a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if git diff-tree -r --name-only --no-commit-id $1 $2 | grep -q package.json
then
git clean -xdf src/**/lazy-* projects/**/lazy-*
npm install
fi

0 comments on commit 7c0b11a

Please sign in to comment.