diff options
Diffstat (limited to 'lib/prune.js')
-rw-r--r-- | lib/prune.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prune.js b/lib/prune.js index 4a02dc1f8..2afb2b998 100644 --- a/lib/prune.js +++ b/lib/prune.js @@ -4,13 +4,13 @@ module.exports = prune prune.usage = "npm prune" -var readInstalled = require("./utils/read-installed.js") +var readInstalled = require("read-installed") , npm = require("./npm.js") prune.completion = require("./utils/completion/installed-deep.js") function prune (args, cb) { - readInstalled(npm.prefix, function (er, data) { + readInstalled(npm.prefix, npm.config.get("depth"), function (er, data) { if (er) return cb(er) prune_(args, data, cb) }) |