Skip to content

Commit

Permalink
Change peerDependencies to optionalDependencies
Browse files Browse the repository at this point in the history
optionalDependencies dont spill a bunch of warnings on the screen. I use ioredis and it's reminding me to always install redis and redis-mock.

https://yarnpkg.com/lang/en/docs/dependency-types/

optionalDependencies
Optional dependencies are just that: optional. If they fail to install, Yarn will still say the install process was successful.

This is useful for dependencies that won’t necessarily work on every machine and you have a fallback plan in case they are not installed (e.g. Watchman).

PR: tj#280
  • Loading branch information
knoxcard authored and wavded committed Sep 2, 2019
1 parent f440378 commit 008fc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "git@github.com:visionmedia/connect-redis.git"
},
"peerDependencies": {
"optionalDependencies": {
"ioredis": "^4.10.0",
"redis": "^2.8.0",
"redis-mock": "^0.46.0"
Expand Down

0 comments on commit 008fc43

Please sign in to comment.