Skip to content

Commit 3e3da2b

Browse files
authored
chore: only copy files once during build (#1682)
**Summary:** Currently the `copyFiles` function will be executed twice with webviews and client builds. And they run concurrently thus may cause disk failures. **Testing:** See build pass
1 parent e65ba89 commit 3e3da2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (process.env.npm_config_webviews || process.env.npm_config_client) {
8989
await ctx.rebuild();
9090

9191
if (dev) {
92-
copyFiles();
92+
process.env.npm_config_client && copyFiles();
9393
await ctx.watch();
9494
} else {
9595
await ctx.dispose();

0 commit comments

Comments
 (0)