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 (facebook#22232)
  • Loading branch information
lunaruan authored and zhengjitf committed Apr 15, 2022
1 parent 1393dd9 commit 9c41018
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 9c41018

Please sign in to comment.