Skip to content

fix: build command with --unmodified and pattern only builds specified components#9983

Merged
davidfirst merged 4 commits intomasterfrom
fix-build-unmodified-pattern
Sep 4, 2025
Merged

fix: build command with --unmodified and pattern only builds specified components#9983
davidfirst merged 4 commits intomasterfrom
fix-build-unmodified-pattern

Conversation

@davidfirst
Copy link
Member

@davidfirst davidfirst commented Sep 4, 2025

Problem

When running bit build my-component --unmodified, the command was building all components in the workspace instead of just the specified component.

Root Cause

The --unmodified flag was being passed directly as the "all" parameter to getComponentsByUserInput(), causing it to return all components and ignore the pattern entirely.

Solution

  • Modified build.cmd.ts to not pass unmodified as "all" when a pattern is provided
  • Added validation in workspace.ts to prevent both "all" and "pattern" from being used simultaneously
  • Added comprehensive e2e tests to verify the fix

@davidfirst davidfirst enabled auto-merge (squash) September 4, 2025 16:45
@davidfirst davidfirst merged commit 6bed0da into master Sep 4, 2025
11 checks passed
@davidfirst davidfirst deleted the fix-build-unmodified-pattern branch September 4, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants