Skip to content

Commit

Permalink
Merge branch 'main' into fix/scripts-package-init
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJeongHooo authored Jul 13, 2024
2 parents f8d153e + be3a720 commit 33e4a80
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

current_branch=$(git symbolic-ref --short HEAD)
changed_files=$(git diff --name-only origin/$current_branch)

if echo "$changed_files" | grep -E 'package\.json|packages/*/package\.json|apps/*/package\.json|pnpm-workspace\.yaml|pnpm-lock\.yaml' > /dev/null 2>&1; then
echo "ํŒจํ‚ค์ง€ ํŒŒ์ผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๊ฐ์ง€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. pnpm install์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค."
pnpm install
else
echo "ํŒจํ‚ค์ง€ ํŒŒ์ผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์—†์Šต๋‹ˆ๋‹ค."
fi
pnpm install

0 comments on commit 33e4a80

Please sign in to comment.