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>2010-08-25 16:13:11 +0400
committerisaacs <i@izs.me>2010-08-26 05:01:23 +0400
commit0c0447fe3099d1041fd29c84e8281181fa6a0bac (patch)
treeaa7a9c9d7a8867954035ed6ea611ffa5d3c6a245
parent21a09e141a3989cbff252377f22005850ee19f60 (diff)
log verbosely the lifecycle event
-rw-r--r--lib/utils/lifecycle.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/lifecycle.js b/lib/utils/lifecycle.js
index fbecc0b53..47a917d7e 100644
--- a/lib/utils/lifecycle.js
+++ b/lib/utils/lifecycle.js
@@ -12,6 +12,7 @@ var log = require("./log")
function lifecycle (pkg, stage, cb) {
while (pkg && pkg._data) pkg = pkg._data
if (!pkg) return cb(new Error("Invalid package data"))
+ log.verbose(pkg._id, "lifecycle "+stage)
if (!pkg.scripts || !(stage in pkg.scripts)) return cb()
// run package lifecycle scripts in the package root, or the nearest parent.