Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-03-16 09:18:10 +0400
committerisaacs <i@izs.me>2014-03-16 09:18:10 +0400
commit1d29b17f5193d52a5c4faa412a95313dcf41ed91 (patch)
tree18451ae14878480efd469fd72c1b560923ee0193 /lib/prune.js
parentce662561ca0a7b154a7e6058a6a2428b49bd7266 (diff)
read-installed@2.0.0
Diffstat (limited to 'lib/prune.js')
-rw-r--r--lib/prune.js5
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)