News for hackers. Stuff that matters.
Re:NPM packages with most dependencies by Yokohiii on Wednesday February 07, 2018 @11:53AM (#16325832)
It is not a mistake, it is an error.
Re:NPM packages with most dependencies by jeremejevs on Wednesday February 07, 2018 @12:12PM (#16326026)
It is neither, devDependencies is a redundant distinction for projects where a module bundler is involved, like Webpack, since there's no scenario where you wouldn't want to pull these dependencies.
Re:NPM packages with most dependencies by minitech on Wednesday February 07, 2018 @12:40PM (#16326337)
These are packages published to npm. If you’re bundling all of your dependencies into your package with webpack before publishing it, they should all go in devDependencies, since someone installing the published package doesn’t need them.
Re:NPM packages with most dependencies by jeremejevs on Thursday February 08, 2018 @05:06AM (#16331234)
You are correct. Got too used to the "just add everything to regular dependencies" shortcut in private projects, which doesn't cut it for published modules.