Skip to content

Commit 2cd996f

Browse files
committed
remove dist folder in release script for standalone and inline before building
1 parent 8723e77 commit 2cd996f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/devtools/build-and-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ async function buildAndTestExtensions() {
9393

9494
async function buildAndTestStandalonePackage() {
9595
const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');
96+
const corePackageDest = join(corePackagePath, 'dist');
97+
98+
await exec(`rm -rf ${corePackageDest}`);
9699
const buildCorePromise = exec('yarn build', {cwd: corePackagePath});
97100

98101
await logger(
@@ -133,6 +136,9 @@ async function buildAndTestInlinePackage() {
133136
'packages',
134137
'react-devtools-inline'
135138
);
139+
const inlinePackageDest = join(inlinePackagePath, 'dist');
140+
141+
await exec(`rm -rf ${inlinePackageDest}`);
136142
const buildPromise = exec('yarn build', {cwd: inlinePackagePath});
137143

138144
await logger(

0 commit comments

Comments
 (0)