Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
read-installed@2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 16, 2014
1 parent ce66256 commit 1d29b17
Show file tree
Hide file tree
Showing 23 changed files with 243 additions and 62 deletions.
2 changes: 1 addition & 1 deletion lib/install.js
Expand Up @@ -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, []))
Expand Down
2 changes: 1 addition & 1 deletion lib/ls.js
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion lib/prune.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/rebuild.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/completion/installed-deep.js
Expand Up @@ -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) {
Expand Down
13 changes: 13 additions & 0 deletions node_modules/read-installed/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions node_modules/read-installed/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions node_modules/read-installed/node_modules/util-extend/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions node_modules/read-installed/node_modules/util-extend/extend.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/read-installed/node_modules/util-extend/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions node_modules/read-installed/node_modules/util-extend/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions node_modules/read-installed/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 39 additions & 20 deletions node_modules/read-installed/read-installed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion node_modules/read-installed/test/basic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d29b17

Please sign in to comment.