Skip to content

Commit

Permalink
update: remove unneeded if check because yarn also supports using run
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Perri <[email protected]>
  • Loading branch information
Jasonej and erik-perri committed Jan 31, 2024
1 parent a24ab18 commit 4063d1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/hop
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ if [ -f "yarn.lock" ]; then
PACKAGE_MANAGER="yarn"
fi

PACKAGE_MANAGER_RUN_CMD=("$PACKAGE_MANAGER")
if [ "$PACKAGE_MANAGER" == "npm" ]; then
PACKAGE_MANAGER_RUN_CMD+=("run")
fi
PACKAGE_MANAGER_RUN_CMD=("$PACKAGE_MANAGER" "run")

case $1 in
"app:"*|"build:"*|"db:"*|"make:"*|"migrate:"*|"queue:"*)
Expand Down

0 comments on commit 4063d1f

Please sign in to comment.