| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…alues in CLI options
When CLI options defined as boolean are provided with inline values like '--debug=false' or '--dry-run=false', 'node:util.parseArgs' in non-strict mode returns string values ('false' / 'true') rather than booleans. This caused false values to be treated as truthy.
Normalize string boolean values in CLI options.
Closes angular#34199
… in CLI options
When CLI options defined as boolean are provided with inline values like '--verbose=false', 'node:util.parseArgs' in non-strict mode returns string values ('false' / 'true') rather than booleans.
Normalize string boolean values in CLI options.
There was a problem hiding this comment.
This pull request introduces logic to parse explicit string representations of booleans ('true' and 'false') into actual boolean values within both the architect and schematics CLI parsers, accompanied by comprehensive unit tests. The feedback suggests simplifying this parsing logic in both files by removing the redundant typeof value === 'string' check, as strict equality comparisons with 'true' and 'false' already guarantee the type.
Sorry, something went wrong.
…olean values in CLI options
… values in CLI options
…olean values in CLI options
… values in CLI options
|
This PR was merged into the repository. The changes were merged into the following branches: |
Sorry, something went wrong.
…alues in CLI options (#34201) When CLI options defined as boolean are provided with inline values like '--debug=false' or '--dry-run=false', 'node:util.parseArgs' in non-strict mode returns string values ('false' / 'true') rather than booleans. This caused false values to be treated as truthy. Normalize string boolean values in CLI options. Closes #34199 PR Close #34201
… in CLI options (angular#34201) When CLI options defined as boolean are provided with inline values like '--verbose=false', 'node:util.parseArgs' in non-strict mode returns string values ('false' / 'true') rather than booleans. Normalize string boolean values in CLI options. PR Close angular#34201
| Back | FazBrowse Home | New Git URL |
When CLI options defined as boolean are provided with inline values like --debug=false or --dry-run=false, Node's node:util.parseArgs in non-strict mode returns string values ('false' / 'true') rather than booleans. This caused false values to evaluate as truthy.
Normalize string boolean values in CLI options for both @angular-devkit/schematics-cli and @angular-devkit/architect.
Closes #34199