aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 34eb63eb3..04dca402c 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -166,6 +166,17 @@ fn fix_path_for_mac() -> Result<()> {
166} 166}
167 167
168fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> { 168fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
169 let npm_version = Cmd {
170 unix: r"npm --version",
171 windows: r"cmd.exe /c npm.cmd --version",
172 work_dir: "./editors/code",
173 }
174 .run();
175
176 if npm_version.is_err() {
177 eprintln!("\nERROR: `npm --version` failed, `npm` is required to build the VS Code plugin")
178 }
179
169 Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?; 180 Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?;
170 Cmd { 181 Cmd {
171 unix: r"npm run package", 182 unix: r"npm run package",