Skip to content

Commit

Permalink
Added verbose yarn output
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisDS committed Oct 30, 2019
1 parent 5572332 commit 33058ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/tasks/yarn-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ module.exports = function yarnInstall(ui, zipFile) {
tasks.push({
title: 'Installing dependencies',
task: (ctx) => {
const observable = yarn(['install', '--no-emoji', '--no-progress'], {
const yarnOpts = ['install', '--no-emoji', '--no-progress'];
if (ui.verbose) {
yarnOpts.push('verbose');
}
const observable = yarn(yarnOpts, {
cwd: ctx.installPath,
env: {NODE_ENV: 'production'},
observe: true
Expand Down

0 comments on commit 33058ea

Please sign in to comment.