Skip to content

[rush] Support --changed-projects-only in watch mode#5198

Merged
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:watch-changed-only
Apr 16, 2025
Merged

[rush] Support --changed-projects-only in watch mode#5198
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:watch-changed-only

Conversation

@dmichon-msft
Copy link
Contributor

@dmichon-msft dmichon-msft commented Apr 16, 2025

Summary

Defines a behavior for --changed-projects-only in Rush watch-mode phased commands.

Details

  • For the initial build, does nothing, since there is no concept of "project that doesn't need to be built"
  • For watch-mode rebuilds, only operations for projects that have changed files, or downstream operations that specify ignoreChangedProjectsOnlyFlag in rush-project.json will be executed.

You can toggle the behavior on or off between iterations by pressing c on the command line.

How it was tested

Local run of rush start --to heft-webpack5-everything-test against a different worktree.
image

Impacted documentation

Documentation for the command line parameter. The toggle is documented in the CLI UX.

@github-project-automation github-project-automation bot moved this to Needs triage in Bug Triage Apr 16, 2025
@dmichon-msft dmichon-msft changed the title [rush] Support changedProjectsOnly in watch mode [rush] Support --changed-projects-only in watch mode Apr 16, 2025
@dmichon-msft dmichon-msft merged commit 3ffe903 into microsoft:main Apr 16, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Apr 16, 2025
@dmichon-msft dmichon-msft deleted the watch-changed-only branch April 17, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants