From 015a99e87dab9c347d44f22eaaaf0a36a01b25e4 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 9 Dec 2019 10:55:24 -0600 Subject: [PATCH] Always install VS Code dependencies This fixes the case where the script is killed before all the dependencies were fully installed. --- scripts/build.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index 57f0fe39..bbbdb46b 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -169,13 +169,9 @@ class Builder { }); } - if (fs.existsSync(path.join(vscodeSourcePath, "node_modules"))) { - this.log("Using existing VS Code node_modules"); - } else { - await this.task("Installing VS Code dependencies", () => { - return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath }); - }); - } + await this.task("Installing VS Code dependencies", () => { + return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath }); + }); if (fs.existsSync(path.join(vscodeSourcePath, ".build/extensions"))) { this.log("Using existing built-in-extensions");