mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Do not overwrite lock file
Use `npm ci` instead of `npm install`. `npm install` will overwrite the lock file if you have a newer npm version than the one that generated the package-lock.json
This commit is contained in:
parent
2a75594ee8
commit
8ff69055b9
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
- Install all TypeScript dependencies
|
||||
```bash
|
||||
cd editors/code
|
||||
npm install
|
||||
npm ci
|
||||
```
|
||||
|
||||
## Common knowledge
|
||||
|
|
|
@ -129,7 +129,7 @@ fn install_client(client_opt: ClientOpt) -> Result<()> {
|
|||
|
||||
let installed_extensions = if cfg!(unix) {
|
||||
cmd!("npm --version").run().context("`npm` is required to build the VS Code plugin")?;
|
||||
cmd!("npm install").run()?;
|
||||
cmd!("npm ci").run()?;
|
||||
|
||||
cmd!("npm run package --scripts-prepend-node-path").run()?;
|
||||
|
||||
|
@ -140,7 +140,7 @@ fn install_client(client_opt: ClientOpt) -> Result<()> {
|
|||
cmd!("cmd.exe /c npm --version")
|
||||
.run()
|
||||
.context("`npm` is required to build the VS Code plugin")?;
|
||||
cmd!("cmd.exe /c npm install").run()?;
|
||||
cmd!("cmd.exe /c npm ci").run()?;
|
||||
|
||||
cmd!("cmd.exe /c npm run package").run()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue