fix(techdocs): fix cli publishing no dist folder
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user