Quantcast
Viewing all articles
Browse latest Browse all 39

Answer by Juanma Menendez for What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

dependencies: packages that your project/package needs to work in production.

devDependencies: packages that your project/package needs to work while development but are not needed on production (eg: testing packages)

peerDependencies: packages that your project/package needs to work in tandem with (“colaborating” with them) or as a base, useful mainly when you are developing a plugin/component to let know with which version of the “main” package your plugin/component is supposed to work with (eg: React 16)


Viewing all articles
Browse latest Browse all 39

Trending Articles