aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-26 15:13:21 +0100
committerGitHub <[email protected]>2019-10-26 15:13:21 +0100
commit75cd15c84fcf64b88986ae39151a420e6f3c1e39 (patch)
treee26a01bd9356895e56f137ec1527e6da7fbfa687 /xtask
parent37770a3adfcfa2d1948e3d95a7ef2ebc0f7ea2d6 (diff)
parent8e8b6e7f628824d8bf5a50f6b8d445447c000830 (diff)
Merge #2073
2073: warn if npm is not found r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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",