remove dist folder in release script for standalone and inline before building (#22232)

This commit is contained in:
Luna Ruan 2021-09-01 12:16:00 -07:00 committed by GitHub
parent fc40f02adb
commit ac8fc34e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@ async function buildAndTestExtensions() {
async function buildAndTestStandalonePackage() {
const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');
const corePackageDest = join(corePackagePath, 'dist');
await exec(`rm -rf ${corePackageDest}`);
const buildCorePromise = exec('yarn build', {cwd: corePackagePath});
await logger(
@ -133,6 +136,9 @@ async function buildAndTestInlinePackage() {
'packages',
'react-devtools-inline'
);
const inlinePackageDest = join(inlinePackagePath, 'dist');
await exec(`rm -rf ${inlinePackageDest}`);
const buildPromise = exec('yarn build', {cwd: inlinePackagePath});
await logger(