fix: manager embed assets
@@ -116,12 +116,12 @@ build-manager-console() {
set -x
CONSOLE_DIR=$(echo $CUR_DIR | sed 's#hack#manager/console#')
MANAGER_DIR=$(echo $CUR_DIR | sed 's#hack#manager#')
- CONSOLE_ASSETS_DIR=$CONSOLE_DIR/dist/
- MANAGER_ASSETS_DIR=$MANAGER_DIR/dist/
+ CONSOLE_ASSETS=$CONSOLE_DIR/dist/*
+ MANAGER_ASSETS_DIR=$MANAGER_DIR/dist
docker run --workdir=/build \
--rm -v ${CONSOLE_DIR}:/build node:12-alpine \
sh -c "npm install --loglevel warn --progress false && npm run build"
- cp -r $CONSOLE_ASSETS_DIR $MANAGER_ASSETS_DIR
+ cp -r $CONSOLE_ASSETS $MANAGER_ASSETS_DIR
}
main() {
