Permalink
Browse files

read-installed@2.0.0

  • Loading branch information...
1 parent ce66256 commit 1d29b17f5193d52a5c4faa412a95313dcf41ed91 @isaacs isaacs committed Mar 16, 2014
View
@@ -188,7 +188,7 @@ function install (args, cb_) {
}
function findPeerInvalid (where, cb) {
- readInstalled(where, { log: log.warn }, function (er, data) {
+ readInstalled(where, { log: log.warn, dev: true }, function (er, data) {
if (er) return cb(er)
cb(null, findPeerInvalid_(data.dependencies, []))
View
@@ -36,7 +36,7 @@ function ls (args, silent, cb) {
})
var depth = npm.config.get("depth")
- var opt = { depth: depth, log: log.warn }
+ var opt = { depth: depth, log: log.warn, dev: true }
readInstalled(dir, opt, function (er, data) {
var bfs = bfsify(data, args)
, lite = getLite(bfs)
View
@@ -21,7 +21,10 @@ function prune (args, cb) {
})
function next() {
- var opt = { depth: npm.config.get("depth"), dev: npm.config.get("production") }
+ var opt = {
+ depth: npm.config.get("depth"),
+ dev: !npm.config.get("production") || npm.config.get("dev")
+ }
readInstalled(npm.prefix, opt, function (er, data) {
if (er) return cb(er)
prune_(args, data, cb)
View
@@ -14,7 +14,7 @@ rebuild.usage = "npm rebuild [<name>[@<version>] [name[@<version>] ...]]"
rebuild.completion = require("./utils/completion/installed-deep.js")
function rebuild (args, cb) {
- var opt = { depth: npm.config.get("depth") }
+ var opt = { depth: npm.config.get("depth"), dev: true }
readInstalled(npm.prefix, opt, function (er, data) {
log.info("readInstalled", typeof data)
if (er) return cb(er)
@@ -7,7 +7,7 @@ function installedDeep (opts, cb) {
var local
, global
, depth = npm.config.get("depth")
- , opt = { depth: depth }
+ , opt = { depth: depth, dev: true }
if (npm.config.get("global")) local = [], next()
else readInstalled(npm.prefix, opt, function (er, data) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1d29b17

Please sign in to comment.