Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional dependencies are not for running tests #46

Merged
merged 1 commit into from Oct 31, 2013
Merged

Optional dependencies are not for running tests #46

merged 1 commit into from Oct 31, 2013

Conversation

ForbesLindesay
Copy link
Contributor

As discussed, optionalDependencies is for when the installation of a dependency may fail on certain operating systems or in certain network conditions, and the module is capable of working around this. e.g. when you have a native C++ version of something, but also a JavaScript fallback to use in development.

Optional dependencies still get installed by anyone depending on your module even though they are not needed. devDependencies on the other hand, are only installed by people trying to run you tests (e.g. travis-ci)

@benjamn
Copy link
Collaborator

benjamn commented Oct 31, 2013

Makes sense to me.

benjamn added a commit that referenced this pull request Oct 31, 2013
Optional dependencies are not for running tests
@benjamn benjamn merged commit 7b35426 into facebook:master Oct 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants