Quantcast
Channel: What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file? - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by Eric MORAND for What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?

$
0
0

Something that was not mentionned yet: devDependencies are useless if you don't publish the project manifest, but generate a package manifest instead. In this kind of context, the dependencies of the package are computed from the actual dependencies that your package depends on instead of the arbitrary list declared in the project manifest, and there is no need to distinguish between devDependencies and dependencies in the project manifest.

Some tools like Package Manifest Generator, rollup-plugin-generate-package-json or esbuild-plugin-package-manifest are dedicated to this purpose.


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>