Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Improved read-installed to not rely on version files order.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano authored and isaacs committed Sep 9, 2010
1 parent 5429db9 commit eaedd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/read-installed.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function readInstalled (args, cb) {
if (activeVersion && data[package][activeVersion]) {
data[package][activeVersion].active = true
}
if (!version || version.charAt(0) === ".") return listed()
if (version !== "active") {
if (!version) return listed()
if (version !== "active" && version.charAt(0) !== ".") {
data[package][version] = data[package][version] || {}
return process.nextTick(V)
}
Expand Down

0 comments on commit eaedd62

Please sign in to comment.