From 14a0cd3ffd8f728f743db638bfb2ea8e2476d26f Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 22 Oct 2019 11:26:46 -0500 Subject: [PATCH] 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. --- scripts/build.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index 8d70ea81..ca73b55d 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -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 => {