Skip to content

Commit

Permalink
remove dist folder in release script for standalone and inline before…
Browse files Browse the repository at this point in the history
… building (#22232)
  • Loading branch information
lunaruan authored Sep 1, 2021
1 parent fc40f02 commit ac8fc34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/devtools/build-and-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ac8fc34

Please sign in to comment.