Skip to content

Commit f26ed0f

Browse files
alexbrazieriansu
authored andcommitted
Use yarn in predeploy script if built using yarn (facebook#4623)
1 parent 3e16544 commit f26ed0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/printHostingInstructions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function printDeployInstructions(publicUrl, hasDeployScript, useYarn) {
9292
console.log(` ${chalk.dim('// ...')}`);
9393
console.log(
9494
` ${chalk.yellow('"predeploy"')}: ${chalk.yellow(
95-
'"npm run build",'
95+
`"${useYarn ? 'yarn' : 'npm run'} build",`
9696
)}`
9797
);
9898
console.log(

0 commit comments

Comments
 (0)