From 008fc436c9c50d9a702e7ceea3f5327a05d17567 Mon Sep 17 00:00:00 2001 From: "Indospace.io" Date: Mon, 2 Sep 2019 09:58:15 -0700 Subject: [PATCH] Change peerDependencies to optionalDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/tj/connect-redis/pull/280 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e6035db..d39cbf34 100644 --- a/package.json +++ b/package.json @@ -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"