summaryrefslogtreecommitdiff
path: root/deps/npm/lib/prune.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-02-16 20:43:16 -0800
committerisaacs <i@izs.me>2014-02-16 20:43:16 -0800
commitec2fc4ca4d3eacaa3dc1db1673169b89233b9823 (patch)
tree0aa8a647e5111653bdf9c122182be93bf8823c7b /deps/npm/lib/prune.js
parent86b8d84811484763b251b9a8a2b9e673964ea6b5 (diff)
downloadnode-npm-v1.4.3.tar.gz
npm: upgrade to 1.4.3npm-v1.4.3
Diffstat (limited to 'deps/npm/lib/prune.js')
-rw-r--r--deps/npm/lib/prune.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/prune.js b/deps/npm/lib/prune.js
index 0e13da13b..8fa3e5d50 100644
--- a/deps/npm/lib/prune.js
+++ b/deps/npm/lib/prune.js
@@ -21,7 +21,8 @@ function prune (args, cb) {
})
function next() {
- readInstalled(npm.prefix, npm.config.get("depth"), function (er, data) {
+ var opt = { depth: npm.config.get("depth"), dev: npm.config.get("production") }
+ readInstalled(npm.prefix, opt, function (er, data) {
if (er) return cb(er)
prune_(args, data, cb)
})