Repository: storybook
Issue: [Bug]: Unable to build storybook using Angular builder and passing the webpackStatsJson cli option (Error: Unknown argument)
Labels: bug,has workaround,angular

### Describe the bug

We are unable to build our angular storybook using the following command:
`npm run build-storybook -- --output-dir /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D --webpack-stats-json /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D`

Error returned:
`Error: Unknown argument: /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D`

Dev dependencies:
```
    "devDependencies": {
        "@storybook/addon-designs": "^7.0.5",
        "@storybook/addon-docs": "^7.5.1",
        "@storybook/addon-essentials": "^7.5.1",
        "@storybook/addon-interactions": "^7.5.1",
        "@storybook/addon-links": "^7.5.1",
        "@storybook/angular": "^7.5.1",
        "@storybook/blocks": "^7.5.1",
        "@storybook/cli": "^7.5.1",
        "@storybook/testing-library": "^0.2.2",
        "storybook": "^7.5.1",
        "storybook-addon-pseudo-states": "^2.1.2"
    },
```

Angular:
```
        "@angular/animations": "^16.1.3",
        "@angular/cdk": "^16.1.3",
        "@angular/common": "^16.1.3",
        "@angular/compiler": "^16.1.3",
        "@angular/core": "^16.1.3",
        "@angular/forms": "^16.1.3",
        "@angular/material": "^16.1.3",
        "@angular/platform-browser": "^16.1.3",
        "@angular/platform-browser-dynamic": "^16.1.3",
        "@angular/router": "^16.1.3"
```

Storybook script:
` "build-storybook": "ng run common-web:build-storybook"
`

Schema from storybook/angular uses an array for the allowed values:
```
        "webpackStatsJson": {
            "type": ["boolean", "string"],
            "description": "Write Webpack Stats JSON to disk",
            "default": false
        },
```

It would appear that it is not working as expected. When running the help command, only the boolean appears:
`npx ng run common-web:build-storybook --help
`  --webpack-stats-json  Write Webpack Stats JSON to disk                                                                               [boolean] [default: false]

If I manually change the schema to only accept a string, the command is executed without any issues.

### To Reproduce

Run storybook using the angular builder and by setting the webpackStatsJson parameter. 
```
ng run common-web:build-storybook --output-dir /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D --webpack-stats-json /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D
```
Result:
```
> build-storybook
> ng run common-web:build-storybook --output-dir /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D --webpack-stats-json /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D

Error: Unknown argument: /var/folders/1z/fxbpr9910_j4p85r7wg_83r00000gq/T/chromatic--29205-2OOU7gjtlU4D
```

### System

```bash
laforgen@Loan2s-MacBook-Pro web-apps % npx storybook@latest info

Storybook Environment Info:

  System:
    OS: macOS 13.6
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm <----- active
  Browsers:
    Chrome: 118.0.5993.96
    Safari: 17.0
  npmPackages:
    @storybook/addon-designs: ^7.0.5 => 7.0.5
    @storybook/addon-docs: ^7.5.1 => 7.5.1
    @storybook/addon-essentials: ^7.5.1 => 7.5.1
    @storybook/addon-interactions: ^7.5.1 => 7.5.1
    @storybook/addon-links: ^7.5.1 => 7.5.1
    @storybook/addon-styling: ^1.3.7 => 1.3.7
    @storybook/angular: ^7.5.1 => 7.5.1
    @storybook/blocks: ^7.5.1 => 7.5.1
    @storybook/cli: ^7.5.1 => 7.5.1
    @storybook/testing-library: ^0.2.2 => 0.2.2
    storybook: ^7.5.1 => 7.5.1
    storybook-addon-pseudo-states: ^2.1.2 => 2.1.2
```
```


### Additional context

_No response_