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 95ac499b32
commit 993e6c6567
+6
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(