aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2021-02-05 15:57:36 +0000
committerkjeremy <[email protected]>2021-02-05 15:57:36 +0000
commit8ff69055b93b25a9e9340b51f171cc07c116c88d (patch)
tree0c886d263f0952fe8545d64d9f815cff7e973843 /xtask
parent2a75594ee894baad5339ff9708ca70f6f69e0a36 (diff)
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
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/install.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/install.rs b/xtask/src/install.rs
index 81b9956b8..3b79cca0d 100644
--- a/xtask/src/install.rs
+++ b/xtask/src/install.rs
@@ -129,7 +129,7 @@ fn install_client(client_opt: ClientOpt) -> Result<()> {
129 129
130 let installed_extensions = if cfg!(unix) { 130 let installed_extensions = if cfg!(unix) {
131 cmd!("npm --version").run().context("`npm` is required to build the VS Code plugin")?; 131 cmd!("npm --version").run().context("`npm` is required to build the VS Code plugin")?;
132 cmd!("npm install").run()?; 132 cmd!("npm ci").run()?;
133 133
134 cmd!("npm run package --scripts-prepend-node-path").run()?; 134 cmd!("npm run package --scripts-prepend-node-path").run()?;
135 135
@@ -140,7 +140,7 @@ fn install_client(client_opt: ClientOpt) -> Result<()> {
140 cmd!("cmd.exe /c npm --version") 140 cmd!("cmd.exe /c npm --version")
141 .run() 141 .run()
142 .context("`npm` is required to build the VS Code plugin")?; 142 .context("`npm` is required to build the VS Code plugin")?;
143 cmd!("cmd.exe /c npm install").run()?; 143 cmd!("cmd.exe /c npm ci").run()?;
144 144
145 cmd!("cmd.exe /c npm run package").run()?; 145 cmd!("cmd.exe /c npm run package").run()?;
146 146