Permalink
Browse files

dtrejo: for now, only require report if npat is true

  • Loading branch information...
1 parent d965cdf commit 8f55f3b72311e7a504b6b40e9dcc6859cafec85a @DTrejo committed with Feb 22, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/utils/lifecycle.js
@@ -11,7 +11,6 @@ var log = require("npmlog")
, chain = require("slide").chain
, constants = require("constants")
, output = require("./output.js")
- , report = require("report")
, PATH = "PATH"
// windows calls it's path "Path" usually, but this is not guaranteed.
@@ -159,9 +158,9 @@ function runPackageLifecycle (pkg, env, wd, unsafe, isNpat, cb) {
, function (er, code, stdout, stderr) {
if (isNpat) {
- console.log(pkg)
+ var report = require("report")
report({
- stdout: stdout
+ stdout: stdout // TODO: always empty, even if script prints things. why?
, stderr: stderr
, code: code
, error: er

0 comments on commit 8f55f3b

Please sign in to comment.