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
mkdir test
cd test
npm init -y
npm install cheerio
After that, all packages.json files in node_modules directory have bundleDependencies: false.
But not the main package.json of the project in root directory.
Looking into this in schemastore, it seems like npm allows for any falsy value for bundleDependencies, not just explicitly false, though that is what npm itself inserts into installed package.json files. The usage of it roughly follows these three patterns in the handful of places:
if (!pkg.bundledDependencies)
let bundled = pkg.bundledDependencies; if (!Array.isArray(bundled)) bundled = [];
node 12.13.0
After that, all packages.json files in node_modules directory have
bundleDependencies: false
.But not the main package.json of the project in root directory.
https://docs.npmjs.com/files/package.json#bundleddependencies does not mention that
bundleddependencies
can also be boolean, nor the schema at https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.jsonShould the schema be updated?
Original issue: microsoft/vscode#84972
The text was updated successfully, but these errors were encountered: