You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result always comes out with the project name and version taken from my package.json. Based on the CLI help, though, I'd expect the CLI options to take prioity.
I did some further investigation and found that if I remove either the name or version property from package.json, the corresponding value becomes an empty string, continuing to ignore the CLI options. The only way I seemed to be able to get it to respect the CLI options is by removing package.json altogether and running like this:
Of course, removing package.json is hardly ideal. I suppose if it's there, there isn't much reason to need the CLI options, so I wouldn't exactly call this a high priority. It just doesn't quite work like the help says.
The text was updated successfully, but these errors were encountered:
Reviewing the code for this config merging, I'd expect your intended behavior as well: _.defaults should give preference to the passed CLI configuration over the package.json defaults. So either
Using v4.0.0-rc.1, I'm completely unable to use either of these CLI options when a
package.json
is present.Documentation is installed locally and I am running with an npm script:
The result always comes out with the project name and version taken from my
package.json
. Based on the CLI help, though, I'd expect the CLI options to take prioity.I did some further investigation and found that if I remove either the
name
orversion
property frompackage.json
, the corresponding value becomes an empty string, continuing to ignore the CLI options. The only way I seemed to be able to get it to respect the CLI options is by removingpackage.json
altogether and running like this:Of course, removing
package.json
is hardly ideal. I suppose if it's there, there isn't much reason to need the CLI options, so I wouldn't exactly call this a high priority. It just doesn't quite work like the help says.The text was updated successfully, but these errors were encountered: