Show debug info

This commit is contained in:
Rico Sta. Cruz
2016-01-30 05:42:42 +08:00
parent a6f8c837a7
commit 28f527963e
2 changed files with 5 additions and 1 deletions

View File

@@ -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 })
}
}
/*

View File

@@ -1,3 +1,4 @@
process.env.DEBUG = 'pnpm:*'
var test = require('tape')
var join = require('path').join
var fs = require('fs')