Use yarn in predeploy script if built using yarn (#4623)

This commit is contained in:
Alex Brazier
2018-06-18 17:06:26 +01:00
committed by Ian Sutherland
parent 3e165448a7
commit f26ed0f09a

View File

@@ -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(