Skip manifest generation when bundle dir matches local output#7413
Open
isaacroldan wants to merge 1 commit intomainfrom
Open
Skip manifest generation when bundle dir matches local output#7413isaacroldan wants to merge 1 commit intomainfrom
isaacroldan wants to merge 1 commit intomainfrom
Conversation
The same-path guard previously only skipped the copy and still let manifest generation run. With the comment now explicitly stating both behaviors, lock that in with a test that verifies createOrUpdateManifestFile is not called when localOutputDir === bundleOutputDir, even with generatesAssetsManifest: true. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vividviolet
approved these changes
Apr 28, 2026
4 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the bundle_ui build step to fully short-circuit when the “local build output” and “bundle output” directories resolve to the same path, preventing unnecessary work and avoiding manifest generation in that scenario.
Changes:
- Return early when
resolvePath(localOutputDir) === resolvePath(bundleOutputDir)to skip both copy and manifest generation. - Simplify copy logic to a single unconditional
copyFilecall after the early-return guard. - Add a unit test asserting neither
copyFilenorcreateOrUpdateManifestFileis invoked when both paths resolve to the same location.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/app/src/cli/services/build/steps/bundle-ui-step.ts | Adds an early return to skip copy + assets manifest generation when output dirs resolve to the same path. |
| packages/app/src/cli/services/build/steps/bundle-ui-step.test.ts | Adds coverage ensuring manifest generation is also skipped in the “same resolved dir” scenario. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
alfonso-noriega
approved these changes
Apr 28, 2026
gonzaloriestra
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

WHY are these changes introduced?
When the local output directory and the bundle output directory resolve to the same path, there is no need to copy files or generate an assets manifest. Previously, the early return only skipped the file copy but still allowed manifest generation to proceed in some code paths.
WHAT is this pull request doing?
When the resolved local and bundle output directories are identical, the function now returns early before both the file copy and any manifest generation. This ensures that manifest generation is also skipped in this case, not just the file copy.
A test has been added to verify that neither
copyFilenorcreateOrUpdateManifestFileis called when the two paths resolve to the same location.How to test your changes?
bundle-ui-step:copyFileandcreateOrUpdateManifestFileare skipped when the local and bundle output directories resolve to the same path.Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add