diff options
author | isaacs <i@izs.me> | 2014-03-16 09:18:10 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-03-16 09:18:10 +0400 |
commit | 1d29b17f5193d52a5c4faa412a95313dcf41ed91 (patch) | |
tree | 18451ae14878480efd469fd72c1b560923ee0193 /lib/prune.js | |
parent | ce662561ca0a7b154a7e6058a6a2428b49bd7266 (diff) |
read-installed@2.0.0
Diffstat (limited to 'lib/prune.js')
-rw-r--r-- | lib/prune.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/prune.js b/lib/prune.js index 8fa3e5d50..eb58c7f64 100644 --- a/lib/prune.js +++ b/lib/prune.js @@ -21,7 +21,10 @@ function prune (args, cb) { }) function next() { - var opt = { depth: npm.config.get("depth"), dev: npm.config.get("production") } + var opt = { + depth: npm.config.get("depth"), + dev: !npm.config.get("production") || npm.config.get("dev") + } readInstalled(npm.prefix, opt, function (er, data) { if (er) return cb(er) prune_(args, data, cb) |