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-02-15 05:33:03 +0400
committerisaacs <i@izs.me>2014-02-15 05:33:03 +0400
commitbb6fb4d158f175ddeb2956b361f854c273b6bed0 (patch)
tree0764197a5625d1d590242d08dd932557fcaab028 /lib/rebuild.js
parent3ce6905bf6b0963956d7dbb8a89fc29d379de91c (diff)
read-installed@1.0.0
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r--lib/rebuild.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index 7cea3efff..a156acccf 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -14,7 +14,8 @@ rebuild.usage = "npm rebuild [<name>[@<version>] [name[@<version>] ...]]"
rebuild.completion = require("./utils/completion/installed-deep.js")
function rebuild (args, cb) {
- readInstalled(npm.prefix, npm.config.get("depth"), function (er, data) {
+ var opt = { depth: npm.config.get("depth") }
+ readInstalled(npm.prefix, opt, function (er, data) {
log.info("readInstalled", typeof data)
if (er) return cb(er)
var set = filter(data, args)