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>2012-06-12 03:37:27 +0400
committerisaacs <i@izs.me>2012-06-12 03:37:27 +0400
commitcbf5f60218fc21a6a592a6856d91794477d0652d (patch)
tree1992b03350e82944ba5899bcf7f6832fc41acac4 /lib/prune.js
parenta995d4f50d6376d2699c2ba1df4e4f277cfbef62 (diff)
Use read-installed dependency
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)
})