Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 5f510dc

Browse files
committed
Fix auto-install for npm packages in post-merge hook
1 parent 6874be5 commit 5f510dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/post-merge

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@ source "${SOURCE_DIR}/helpers/is-changed.bash"
1010
if [[ ${GIT_GRAPNEL_AUTO_INSTALL:-0} -eq 0 ]]; then exit 0; fi
1111

1212
if [[ -f package-lock.json ]] && is_changed package-lock.json; then
13-
npm clean-install || npm install
13+
npm clean-install
14+
exit 0
15+
fi
16+
17+
if [[ -f package.json ]] && is_changed package.json; then
18+
npm install
19+
exit 0
1420
fi

0 commit comments

Comments
 (0)