From 28f527963eb421de7c2b2e75ceb246cd3abba953 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 30 Jan 2016 05:42:42 +0800 Subject: [PATCH] Show debug info --- lib/install.js | 5 ++++- test/index.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/install.js b/lib/install.js index 715afd5b5c..4ae337a42a 100644 --- a/lib/install.js +++ b/lib/install.js @@ -169,7 +169,10 @@ function buildToStore (ctx, paths, pkg, log) { } function installLogger (log, pkg) { - return (stream, line) => log(stream, { name: pkg.fullname, line: line }) + return (stream, line) => { + require('debug')('pnpm:post_install')('%s %s', pkg.fullname, line) + log(stream, { name: pkg.fullname, line: line }) + } } /* diff --git a/test/index.js b/test/index.js index 10e388da8a..b7e57b0de4 100644 --- a/test/index.js +++ b/test/index.js @@ -1,3 +1,4 @@ +process.env.DEBUG = 'pnpm:*' var test = require('tape') var join = require('path').join var fs = require('fs')