Skip to content

Commit 1301f0a

Browse files
committed
[Fix] Use full path single user package.json file
1 parent 7d8a8ae commit 1301f0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ if [[ ! -d $STEP_DIR ]]; then
105105
eval "$NPMi" -g $SINGLE_USER || exit 24
106106

107107
# Set `/init` to package binary or `server.js` file
108+
PACKAGE_JSON=$STEP_DIR/lib/node_modules/$SINGLE_USER/package.json
108109
(
109-
BIN=bin/`pkg-bin $SINGLE_USER` && \
110-
ls $STEP_DIR/$BIN && \
110+
BIN=bin/`pkg-bin $PACKAGE_JSON` && \
111+
ls $STEP_DIR/$BIN && \
111112
ln -fs $BIN $STEP_DIR/init
112113
) \
113114
|| (

0 commit comments

Comments
 (0)