@samitouri / QOS-React-2 / commits / 78fa7109c7

Release script prompts to stop running DEV scripts (#24154)

Brian Vaughn committed Mar 24, 2022 at 16:33 UTC 78fa7109c76225187427266e4f682fb713f3b922
1 file changed +20
scripts/devtools/build-and-test.js
+20
@@ -21,6 +21,26 @@ const {
21 async function main() {
22 clear();
23
24 + await confirm('Have you stopped all NPM DEV scripts?', () => {
25 + const packagesPath = relative(process.cwd(), join(__dirname, 'packages'));
26 +
27 + console.log('Stop all NPM DEV scripts in the following directories:');
28 + console.log(
29 + chalk.bold(' ' + join(packagesPath, 'react-devtools-core')),
30 + chalk.gray('(start:backend, start:standalone)')
31 + );
32 + console.log(
33 + chalk.bold(' ' + join(packagesPath, 'react-devtools-inline')),
34 + chalk.gray('(start)')
35 + );
36 +
37 + const buildAndTestScriptPath = join(__dirname, 'build-and-test.js');
38 + const pathToPrint = relative(process.cwd(), buildAndTestScriptPath);
39 +
40 + console.log('\nThen restart this release step:');
41 + console.log(chalk.bold.green(' ' + pathToPrint));
42 + });
43 +
44 await confirm('Have you run the prepare-release script?', () => {
45 const prepareReleaseScriptPath = join(__dirname, 'prepare-release.js');
46 const pathToPrint = relative(process.cwd(), prepareReleaseScriptPath);