From 33058ea226540105b880e7880706b7a8e97e9c69 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 30 Oct 2019 11:28:59 +0000 Subject: [PATCH] Added verbose yarn output --- lib/tasks/yarn-install.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tasks/yarn-install.js b/lib/tasks/yarn-install.js index b2636b8a6..4c0110c36 100644 --- a/lib/tasks/yarn-install.js +++ b/lib/tasks/yarn-install.js @@ -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