[BUG] Incorrect type for bundleDependencies
When i install a npm package, the following line is automatically added in package.json of all nodes_modules dependencies :
"bundleDependencies": false,
When i open package.json file with vscode i have a warning alert in problems tab with the message :
--> Incorrect type. Expected "array".
It's normal because bundleDependencies parameter expect array. So "false" is wrong type. When i replace "false" by "[]" the warning alert disappears.
It's very annoying to have this alert in ALL package.json and i can't replace the value in all dependencies.
So why "npm install MODULE" auto add bundleDependencies in package.json of all dependencies ? Why it put "false" if it's expecting array ?
Thanks.
MACOS 10.14.1 NPM 6.12.0
That means the type is wrong, not the file. npm itself doesn’t maintain any types for package.json as far as I’m aware. You may want to file a vscode issue instead.
Yes, i know the file is not wrong, just the type. And vscode show me that with a warning alert.
But i don't understand why "bundleDependencies: false" is added when i install a module, even without vscode.
For example, if i install a module into a new empty project with the MacOS Terminal : "npm install cowsay"
Then in node_modules directory all dependencies have "bundleDependencies": false in their package.json.
Why ?
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
Closing: This is an automated message.