mirror of https://github.com/coder/code-server.git
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:
parent
3ff83eda45
commit
14a0cd3ffd
|
@ -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> => {
|
||||
|
|
Loading…
Reference in New Issue