Permalink
Browse files

Add tildes for >=0.1.0, not 1.0.0

  • Loading branch information...
1 parent 3defd7b commit 86a00019f72a2527d35a885a07f5e13459de33d4 @isaacs isaacs committed Jul 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/install.js
View
@@ -232,7 +232,7 @@ function save (where, installed, tree, pretty, cb) {
//log.warn(k, "k")
return tree[k].what.split("@")
}).reduce(function (set, k) {
- var rangeDescriptor = semver.gte(k[1], "1.0.0") ? "~" : '';
+ var rangeDescriptor = semver.gte(k[1], "0.1.0") ? "~" : ""
set[k[0]] = rangeDescriptor + k[1]
return set
}, {})

0 comments on commit 86a0001

Please sign in to comment.