Skip to content

Commit

Permalink
Merge branch 'main' into component/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SalihuDickson authored Jun 2, 2024
2 parents ca6f5e6 + 9f47143 commit 8f0ef7c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,17 @@ nextTask("Building source", async () => {
);
});
})
.finally(() =>
nextTask("Cleaning up react source", () => {
fs.rmSync(reactDir, {
force: true,
recursive: true,
.finally(() => {
// Skip cleanup if watch mode is enabled to preserve the react source for incremental builds
if (!commanderOpts.watch) {
nextTask("Cleaning up react source", () => {
fs.rmSync(reactDir, {
force: true,
recursive: true,
});
});
})
);
}
});
});

module.exports = {};

0 comments on commit 8f0ef7c

Please sign in to comment.