-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pnpm install automatically after git pull
- Loading branch information
Showing
3 changed files
with
6,361 additions
and
6,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
echo "→ husky (post-merge)" | ||
|
||
if [ $(pnpm -v) ]; then | ||
if [ $(pnpm git-pull-run -V) ]; then | ||
pnpm git-pull-run --pattern "**/pnpm-lock.yaml" --command "pnpm install" | ||
else | ||
pnpx git-pull-run --pattern "**/pnpm-lock.yaml" --command "pnpm install" | ||
fi | ||
else | ||
echo "❌ This project use pnpm." && exit 127 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.