Use npm ci instead of install

This commit is contained in:
Hirokazu Hata 2019-01-24 03:23:15 +09:00
parent 5ced113e1c
commit 0dc60e10ac

View file

@ -150,10 +150,10 @@ fn existing_tests(dir: &Path, ok: bool) -> Result<HashMap<String, (PathBuf, Test
fn install_code_extension() -> Result<()> {
run("cargo install --path crates/ra_lsp_server --force", ".")?;
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")?;
} else {
run(r"npm install", "./editors/code")?;
run(r"npm ci", "./editors/code")?;
run(r"npm run package", "./editors/code")?;
}
if cfg!(windows) {