Skip to content

fix(@angular/cli): temporarily handle boolean options in schema prefixed with no#23405

Merged
dgp1130 merged 1 commit intoangular:mainfrom
alan-agius4:no-options-schema
Jun 21, 2022
Merged

fix(@angular/cli): temporarily handle boolean options in schema prefixed with no#23405
dgp1130 merged 1 commit intoangular:mainfrom
alan-agius4:no-options-schema

Conversation

@alan-agius4
Copy link
Collaborator

With this commit we introduce an interim solution for options prefixed with no in schema.json

Previously, such options were handled as normal boolean option, but yargs handles options prefixed with no as negatations of the original option. Example with yargs, an option noWatch is will registered as watch.

Closes #23397

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jun 20, 2022
@alan-agius4 alan-agius4 requested a review from clydin June 20, 2022 15:27
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 20, 2022
@alan-agius4 alan-agius4 changed the title fix(@angular/cli): temporary handle boolean options in schema prefixed with no fix(@angular/cli): temporarily handle boolean options in schema prefixed with no Jun 21, 2022
…xed with `no`

With this commit we introduce an interim solution for options prefixed with `no` in `schema.json`

Previously, such options were handled as normal boolean option, but yargs handles options prefixed with `no` as negatations of the original option. Example with yargs, an option `noWatch` is will registered as `watch`.

Closes angular#23397
@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 Jun 21, 2022
@dgp1130 dgp1130 merged commit ba3f671 into angular:main Jun 21, 2022
@JohannesHoppe
Copy link
Contributor

🙂 👍 👍 👍 👍

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression on command line arguments parser

4 participants