Skip to content

fix(@angular/cli): include builder options for build and test in json-help - #34644

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:docs/build-help-builders
Nov 3, 2026
Merged

alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:docs/build-help-builders

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Allow ArchitectCommandModule subclasses to declare multiple builders so that --json-help resolves and outputs each builder's schema options separately under the builders field.

  • Configure BuildCommandModule with the Application (@angular/build:application) and Library (@angular/build:library) builders.
  • Configure TestCommandModule with the Unit-test (@angular/build:unit-test) and Karma (@angular/build:karma) builders.

See: angular/angular#71791

Previews:

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for mapping human-readable builder names to Architect builder identifiers in ArchitectCommandModule (implemented in build and test commands). This allows --json-help to resolve and output schema options grouped under each builder rather than flattening them. Key feedback points out a bug where builders are registered on the root Yargs instance instead of the subcommand-specific instance, which leads to lookup failures, and suggests resolving builder options in parallel using Promise.all. Additionally, the reviewer recommends widening the enum type in JsonHelpOption to support strings, numbers, and booleans for better type safety.

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Nov 3, 2026
…-help

Allow ArchitectCommandModule subclasses to declare multiple builders so that --json-help resolves and outputs each builder's schema options separately under the builders field. Configure BuildCommandModule with the Application (@angular/build:application) and Library (@angular/build:library) builders, and TestCommandModule with the Unit-test (@angular/build:unit-test) and Karma (@angular/build:karma) builders.
@alan-agius4
alan-agius4 force-pushed the docs/build-help-builders branch from 807beca to 9df6408 Compare November 3, 2026 10:36
@alan-agius4
alan-agius4 requested a review from clydin November 3, 2026 12:36
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 3, 2026
@alan-agius4
alan-agius4 merged commit 5d50f59 into angular:main Nov 3, 2026
39 of 40 checks passed
@alan-agius4
alan-agius4 deleted the docs/build-help-builders branch November 3, 2026 17:18
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants