White Blue 6/7/2020

Is this a dependency or devDependency?

Read Original

This article discusses the distinction between dependencies and devDependencies in Node.js package.json files. It references official NPM documentation, provides clear-cut examples like ESLint and test frameworks as devDependencies, and explores murky scenarios for client-side applications using bundlers, transpilers, and front-end frameworks. The author advises considering the module's role, build process, and deployment to decide where to place each package.

Is this a dependency or devDependency?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser