Skip to content

Commit

Permalink
fix: clear only required build dirs (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee authored Nov 21, 2024
1 parent d7a5007 commit 179305f
Show file tree
Hide file tree
Showing 3 changed files with 572 additions and 775 deletions.
3 changes: 1 addition & 2 deletions cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const handler = async ({
? getAppParameters(standalone, config)
: null

await fs.remove(paths.buildOutput)

await exitOnCatch(
async () => {
if (
Expand Down Expand Up @@ -196,6 +194,7 @@ const handler = async ({
process.exit(1)
}

await fs.remove(paths.buildAppOutput)
await fs.copy(paths.shellBuildOutput, paths.buildAppOutput)

if (packAppOutput) {
Expand Down
2 changes: 0 additions & 2 deletions cli/src/lib/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ module.exports = (cwd = process.cwd(), { typeScript } = {}) => {
'bundle',
'{name}-{version}.zip'
),
buildLibBundleFile: '{name}-{version}.zip',
buildLibBundleOutput: path.join(base),

launchPath: 'index.html',
pluginLaunchPath: 'plugin.html',
Expand Down
Loading

0 comments on commit 179305f

Please sign in to comment.