[schematics cli] Boolean options is parsed as a string

Open
#26,412 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Start by reproducing the boolean-option behavior with @angular-devkit/schematics-cli using the dependency versions listed in the issue. Trace how the schematics CLI parses the option and verify that the completed behavior preserves a boolean value rather than converting it to a string.

Written by the indexing model from the issue text.

Description

area: @angular-devkit/schematics-cli freq1: low severity5: regression type: bug/fix
Command

other

Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

I found this issue https://github.com/angular/angular-cli/issues/12150 which is closed as fixed, but now I'm using the latest version and have the same issue

Minimal Reproduction

.

Exception or Error

No response

Your Environment
"dependencies": {
    "@angular-devkit/core": "^17.0.0",
    "@angular-devkit/schematics": "^17.0.0",
    "@nestjs/schematics": "^10.0.3",
    "@schematics/angular": "^17.0.1",
    "typescript": "~5.2.2"
  },
  "devDependencies": {
    "@angular-devkit/schematics-cli": "^17.0.1",
    "@types/jasmine": "~5.1.0",
    "@types/node": "^18.18.0",
    "jasmine": "^5.0.0",
    "nodemon": "^3.0.1"
  }


### Anything else relevant?

_No response_
Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.