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

This commit is contained in:
Brian Vaughn
2022-03-24 19:33:59 -04:00
committed by GitHub
parent 72ce39f611
commit 8ffde7ee9c
+20
View File
@@ -21,6 +21,26 @@ const {
async function main() {
clear();
await confirm('Have you stopped all NPM DEV scripts?', () => {
const packagesPath = relative(process.cwd(), join(__dirname, 'packages'));
console.log('Stop all NPM DEV scripts in the following directories:');
console.log(
chalk.bold(' ' + join(packagesPath, 'react-devtools-core')),
chalk.gray('(start:backend, start:standalone)')
);
console.log(
chalk.bold(' ' + join(packagesPath, 'react-devtools-inline')),
chalk.gray('(start)')
);
const buildAndTestScriptPath = join(__dirname, 'build-and-test.js');
const pathToPrint = relative(process.cwd(), buildAndTestScriptPath);
console.log('\nThen restart this release step:');
console.log(chalk.bold.green(' ' + pathToPrint));
});
await confirm('Have you run the prepare-release script?', () => {
const prepareReleaseScriptPath = join(__dirname, 'prepare-release.js');
const pathToPrint = relative(process.cwd(), prepareReleaseScriptPath);