Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add tildes for >=0.1.0, not 1.0.0

  • Loading branch information...
commit 86a00019f72a2527d35a885a07f5e13459de33d4 1 parent 3defd7b
isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/install.js
2  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
}, {})
Please sign in to comment.
Something went wrong with that request. Please try again.