@samitouri / QOS-React-2 / commits / ac8fc34e61

remove dist folder in release script for standalone and inline before building (#22232)

Luna Ruan committed Sep 1, 2021 at 12:16 UTC ac8fc34e61d797b0ff88765c05811fe2e21aad79
1 file changed +6
scripts/devtools/build-and-test.js
+6
@@ -93,6 +93,9 @@ async function buildAndTestExtensions() {
93
94 async function buildAndTestStandalonePackage() {
95 const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');
96 + const corePackageDest = join(corePackagePath, 'dist');
97 +
98 + await exec(`rm -rf ${corePackageDest}`);
99 const buildCorePromise = exec('yarn build', {cwd: corePackagePath});
100
101 await logger(
@@ -133,6 +136,9 @@ async function buildAndTestInlinePackage() {
136 'packages',
137 'react-devtools-inline'
138 );
139 + const inlinePackageDest = join(inlinePackagePath, 'dist');
140 +
141 + await exec(`rm -rf ${inlinePackageDest}`);
142 const buildPromise = exec('yarn build', {cwd: inlinePackagePath});
143
144 await logger(