mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
remove dist folder in release script for standalone and inline before building (#22232)
This commit is contained in:
@@ -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(
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user