fix(techdocs): fix cli publishing no dist folder

This commit is contained in:
Sebastian Qvarfordt
2020-07-14 20:37:00 +02:00
parent f6dd091d7f
commit a70c4070f8
+3 -3
View File
@@ -18,6 +18,9 @@ ROOT_DIR=$(git rev-parse --show-toplevel)
TECHDOCS_PREVIEW_SOURCE=$ROOT_DIR/plugins/techdocs/dist
TECHDOCS_PREVIEW_DEST=$ROOT_DIR/packages/techdocs-cli/dist/techdocs-preview-bundle
# Clean output
yarn workspace @backstage/plugin-techdocs clean
# Build the CLI
backstage-cli build --outputs cjs
@@ -27,9 +30,6 @@ APP_CONFIG_techdocs_storageUrl='"http://localhost:3000/api"' yarn workspace @bac
# Copy over export to techdocs-cli dist/ folder
cp -r $TECHDOCS_PREVIEW_SOURCE $TECHDOCS_PREVIEW_DEST
# Clean output
yarn workspace @backstage/plugin-techdocs clean
# Write to console
echo "[techdocs-cli]: Built the dist/ folder"
echo "[techdocs-cli]: Imported @backstage/plugin-techdocs dist/ folder into techdocs-preview-bundle/"