From dc4fb4f6ac64bc53d38ff00e92eec000ac1911eb Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 23 Jul 2024 15:08:07 +0200 Subject: [PATCH] cli: fix forwarding of target dir when resolving optional bundling paths Signed-off-by: Patrik Oldsberg --- .changeset/violet-jokes-wave.md | 5 +++++ packages/cli/src/lib/bundler/bundle.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/violet-jokes-wave.md diff --git a/.changeset/violet-jokes-wave.md b/.changeset/violet-jokes-wave.md new file mode 100644 index 0000000000..623cff2583 --- /dev/null +++ b/.changeset/violet-jokes-wave.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Fix for `repo build --all` not properly detecting the experimental public entry point. diff --git a/packages/cli/src/lib/bundler/bundle.ts b/packages/cli/src/lib/bundler/bundle.ts index d24d4252f4..0aa91a90a6 100644 --- a/packages/cli/src/lib/bundler/bundle.ts +++ b/packages/cli/src/lib/bundler/bundle.ts @@ -42,6 +42,7 @@ export async function buildBundle(options: BuildOptions) { const paths = resolveBundlingPaths(options); const publicPaths = await resolveOptionalBundlingPaths({ + targetDir: options.targetDir, entry: 'src/index-public-experimental', dist: 'dist/public', });