Permalink
Browse files

List hiredis as an optional dependency.

This will cause npm to attempt to install hiredis when installing redis,
but if the hiredis installation fails, it won't cause the redis install
to abort.

The optionalDependencies feature was added pretty much explicitly
for the redis->hiredis use case. :)
  • Loading branch information...
1 parent 3a7c638 commit 29a416b7a55fc6a90d02aad6475c5215f4be8daf @isaacs isaacs committed Feb 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 package.json
View
@@ -22,6 +22,9 @@
"devDependencies": {
"metrics": ">=0.1.5"
},
+ "optionalDependencies": {
+ "hiredis": "*"
+ }
@isaacs
isaacs Mar 3, 2012 Contributor

Indeed. There should be a , there.

"repository": {
"type": "git",
"url": "git://github.com/mranney/node_redis.git"

1 comment on commit 29a416b

@pietern
Contributor
pietern commented on 29a416b Feb 3, 2012

Sweet!

Please sign in to comment.