mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-26 06:05:47 +08:00
Use yarn in predeploy script if built using yarn (#4623)
This commit is contained in:
committed by
Ian Sutherland
parent
3e165448a7
commit
f26ed0f09a
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user