From b835770ac84594b04e2f893f1c4e73fe6bc77f24 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 25 Jul 2019 21:22:35 +0200 Subject: [PATCH] Stop spinner during installation (#849) This allows npm and yarn to print their output to the cli. Previously warnings and errors would be swallowed by the spinner --- packages/cli/lib/commands/create.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/lib/commands/create.js b/packages/cli/lib/commands/create.js index 2a90a6989..25ac8eb37 100644 --- a/packages/cli/lib/commands/create.js +++ b/packages/cli/lib/commands/create.js @@ -184,7 +184,8 @@ module.exports = async function(repo, dest, argv) { // await fs.copyFile(serviceWorkerSrc, join(resolve(cwd, dest), 'src', 'sw.js')); if (argv.install) { - spinner.text = 'Installing dependencies'; + spinner.text = 'Installing dependencies:\n'; + spinner.stopAndPersist(); await install(target, isYarn); }