From 2cb62ea6ce07e98feba053411b2430d2b6226412 Mon Sep 17 00:00:00 2001 From: Alex Brazier Date: Sat, 16 Jun 2018 22:28:05 +0100 Subject: [PATCH] Use yarn build command in predeploy script if using yarn --- 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(