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.
This commit is contained in:
Asher 2019-10-22 11:26:46 -05:00
parent 3ff83eda45
commit 14a0cd3ffd
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 10 additions and 2 deletions

View File

@ -303,8 +303,16 @@ class Builder {
]);
});
// This is so it doesn't get cached along with VS Code (no point).
await this.task("Removing copied server", () => fs.remove(serverPath));
// This is so it doesn't get cached along with VS Code. There's no point
// since there isn't anything like an incremental build.
await this.task("Removing build files for smaller cache", () => {
return Promise.all([
fs.remove(serverPath),
fs.remove(path.join(vscodeSourcePath, "out-vscode")),
fs.remove(path.join(vscodeSourcePath, "out-vscode-min")),
fs.remove(path.join(vscodeSourcePath, "out-build")),
]);
});
// Prepend code to the target which enables finding files within the binary.
const prependLoader = async (relativeFilePath: string): Promise<void> => {