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:
Diffstat (limited to 'lib/prune.js')
-rw-r--r--lib/prune.js4
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)
})