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
dependencies
Please do not put test harnesses or transpilers in your dependencies object. See devDependencies, below.
devDependencies
If someone is planning on downloading and using your module in their program, then they probably don't want or need to download and build the external test or documentation framework that you use.
In this case, it's best to map these additional items in a devDependencies object.
These things will be installed when doing npm link or npm install from the root of a package, and can be managed like any other npm configuration param. See npm-config for more on the topic.
For build steps that are not platform-specific, such as compiling CoffeeScript or other languages to JavaScript, use the prepublish script to do this, and make the required package a devDependency.
The text was updated successfully, but these errors were encountered:
Per default,
npm install
also installs the devDependencies. If you don't want to have these dependencies, you need to add the--production
switch.The documentation explains this switch:
For the differences between the dependencies and the dev dependencies see the explanation of package.json:
The text was updated successfully, but these errors were encountered: