From f26ed0f09a71e451e2b3b0cae22d30918f6a8bc1 Mon Sep 17 00:00:00 2001 From: Alex Brazier Date: Mon, 18 Jun 2018 17:06:26 +0100 Subject: [PATCH] Use yarn in predeploy script if built using yarn (#4623) --- packages/react-dev-utils/printHostingInstructions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/printHostingInstructions.js b/packages/react-dev-utils/printHostingInstructions.js index 7afb4af21e4..df697392fe6 100644 --- a/packages/react-dev-utils/printHostingInstructions.js +++ b/packages/react-dev-utils/printHostingInstructions.js @@ -92,7 +92,7 @@ function printDeployInstructions(publicUrl, hasDeployScript, useYarn) { console.log(` ${chalk.dim('// ...')}`); console.log( ` ${chalk.yellow('"predeploy"')}: ${chalk.yellow( - '"npm run build",' + `"${useYarn ? 'yarn' : 'npm run'} build",` )}` ); console.log(