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
  • Loading branch information
lunaruan committed Sep 1, 2021
1 parent 8723e77 commit 2cd996f
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 2cd996f

Please sign in to comment.