-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[heft-node/web-rig] Update the rush-project.json
file to follow the new schema and configure the "build" command output folders for the "_phase:build" phase.
#3144
Conversation
🤔 Extrapolating from this change... if you haven't phase-ified your monorepo, this is using the synthetic phase generated for a bulk action? So if I make a custom bulk action (Clarification: I never configure a "_phase:foo", but I put "_phase:foo" in my rig rush-project.json). |
The synthetic phase names actually don't have the We do validate that the phases are defined in the repo, which is why this PR's build is failing. I think we should consider either eliminating that requirement or relaxing it. The alternative is that we have to put together an internal rig that has a |
I think what's bothering me is that this For example, if you have a bog-standard "heft+jest" compilation setup and you wanted to enable phased builds with a bare minimum of phases, then the configuration changes you'd want to make would be: (1) Create I think maybe, rather than trying to put a "default" Then when the monorepo maintainer converts their build to a phased build, and defines the phases, when they attempt to run the build it should error and force them to define the phase-specific build folders, rather than having a default. |
Ohhhhh.... I think I misunderstood the problem. Regardless of my suggestion above, you're pointing out that if Rush itself uses the default rig, then Rush can't convert to phased builds without breaking the default rig. 🤔 |
The issue is that the code that loads This breaks down if a rig defines options for phases that a repo doesn't use, or if the repo hasn't opted into phased builds. |
…pendencies on @rushstack/heft-node-rig
4fe22c4
to
a73ac3c
Compare
rush-project.json
file to follow the new schema and configure the "build" command output folders for the "_phase:build" phase.
4a966c7
to
890042c
Compare
… version in rush.json is ahead of the version in Rush's package.json
890042c
to
16705a1
Compare
Adds a
_phase:build
output entry torush-project.json
in the rigs.