mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-14 06:15:27 +00:00
Use npm ci instead of install
This commit is contained in:
parent
5ced113e1c
commit
0dc60e10ac
1 changed files with 2 additions and 2 deletions
|
@ -150,10 +150,10 @@ fn existing_tests(dir: &Path, ok: bool) -> Result<HashMap<String, (PathBuf, Test
|
||||||
fn install_code_extension() -> Result<()> {
|
fn install_code_extension() -> Result<()> {
|
||||||
run("cargo install --path crates/ra_lsp_server --force", ".")?;
|
run("cargo install --path crates/ra_lsp_server --force", ".")?;
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
run(r"cmd.exe /c npm.cmd install", "./editors/code")?;
|
run(r"cmd.exe /c npm.cmd ci", "./editors/code")?;
|
||||||
run(r"cmd.exe /c npm.cmd run package", "./editors/code")?;
|
run(r"cmd.exe /c npm.cmd run package", "./editors/code")?;
|
||||||
} else {
|
} else {
|
||||||
run(r"npm install", "./editors/code")?;
|
run(r"npm ci", "./editors/code")?;
|
||||||
run(r"npm run package", "./editors/code")?;
|
run(r"npm run package", "./editors/code")?;
|
||||||
}
|
}
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue