mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge #2073
2073: warn if npm is not found r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
75cd15c84f
1 changed files with 11 additions and 0 deletions
|
@ -159,6 +159,17 @@ fn fix_path_for_mac() -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
|
fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
|
||||||
|
let npm_version = Cmd {
|
||||||
|
unix: r"npm --version",
|
||||||
|
windows: r"cmd.exe /c npm.cmd --version",
|
||||||
|
work_dir: "./editors/code",
|
||||||
|
}
|
||||||
|
.run();
|
||||||
|
|
||||||
|
if npm_version.is_err() {
|
||||||
|
eprintln!("\nERROR: `npm --version` failed, `npm` is required to build the VS Code plugin")
|
||||||
|
}
|
||||||
|
|
||||||
Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?;
|
Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm.cmd ci", work_dir: "./editors/code" }.run()?;
|
||||||
Cmd {
|
Cmd {
|
||||||
unix: r"npm run package",
|
unix: r"npm run package",
|
||||||
|
|
Loading…
Reference in a new issue