Skip to content

Commit 728e785

Browse files
Use npm ci instead of npm install in build.rs (#385)
1 parent cb08b4a commit 728e785

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/js/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ fn main() {
4242
if let Some(npm_path) = npm.as_deref() {
4343
if !ts_dir.join("node_modules").exists() {
4444
let status = Command::new(npm_path)
45-
.arg("install")
45+
.arg("ci")
4646
.current_dir(&ts_dir)
4747
.status();
4848
if !status
4949
.as_ref()
5050
.map(std::process::ExitStatus::success)
5151
.unwrap_or(false)
5252
{
53-
warn!("tsjs: npm install failed; using existing dist if available");
53+
warn!("tsjs: npm ci failed; using existing dist if available");
5454
}
5555
}
5656
}

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ VitePress documentation site for Trusted Server.
1313

1414
```bash
1515
# Install dependencies
16-
npm install
16+
npm ci
1717

1818
# Start dev server (available at localhost:5173)
1919
npm run dev

docs/guide/error-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ ERROR: npm run build:custom failed
589589

590590
```bash
591591
cd crates/js/lib
592-
npm install
592+
npm ci
593593
```
594594

595595
2. Test build manually:

0 commit comments

Comments
 (0)