diff options
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r-- | lib/rebuild.js | 3 |
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) |