Skip to content

Commit 14a0cd3

Browse files
committed
Remove build files in source
They aren't used in subsequent files and just slow down CI since it has to extract from the cache and then package the changes.
1 parent 3ff83ed commit 14a0cd3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/build.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,16 @@ class Builder {
303303
]);
304304
});
305305

306-
// This is so it doesn't get cached along with VS Code (no point).
307-
await this.task("Removing copied server", () => fs.remove(serverPath));
306+
// This is so it doesn't get cached along with VS Code. There's no point
307+
// since there isn't anything like an incremental build.
308+
await this.task("Removing build files for smaller cache", () => {
309+
return Promise.all([
310+
fs.remove(serverPath),
311+
fs.remove(path.join(vscodeSourcePath, "out-vscode")),
312+
fs.remove(path.join(vscodeSourcePath, "out-vscode-min")),
313+
fs.remove(path.join(vscodeSourcePath, "out-build")),
314+
]);
315+
});
308316

309317
// Prepend code to the target which enables finding files within the binary.
310318
const prependLoader = async (relativeFilePath: string): Promise<void> => {

0 commit comments

Comments
 (0)