aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-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 06aa3c8ec..eb39bf715 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -159,6 +159,17 @@ fn fix_path_for_mac() -> Result<()> {
159} 159}
160 160
161fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> { 161fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
162 let npm_version = Cmd {
163 unix: r"npm --version",
164 windows: r"cmd.exe /c npm.cmd --version",
165 work_dir: "./editors/code",
166 }
167 .run();
168
169 if npm_version.is_err() {
170 eprintln!("\nERROR: `npm --version` failed, `npm` is required to build the VS Code plugin")
171 }
172
162 Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?; 173 Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?;
163 Cmd { 174 Cmd {
164 unix: r"npm run package", 175 unix: r"npm run package",