diff --git a/packages/builder/bin/prescan.sh b/packages/builder/bin/prescan.sh index fce0524306..659a742f4b 100755 --- a/packages/builder/bin/prescan.sh +++ b/packages/builder/bin/prescan.sh @@ -40,7 +40,7 @@ if [ -z "$KUI_PRESCAN" ]; then fi echo "compiling plugin registry $CLIENT_HOME to ${KUI_PRESCAN-default location}" -MAIN=$(node -e "console.log(require(\"$CLIENT_HOME/package.json\").main)") +MAIN=$(node -e "console.log(require(\"$SCRIPTDIR/../../package.json\").main)") MAIN_PROXY=$(echo "$MAIN" | sed -E 's/\.min\.js/-proxy.min.js/') if [ -f "$MAIN" ] then KUI_HEADLESS=true node "$MAIN" -- kui internal scan