diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-11 23:29:30 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-11 23:33:18 -0400 |
| commit | ddef0916de13949e800a63fa3490a73e98996fa2 (patch) | |
| tree | 83b2d65f928498a65b4518858dd736422741380c /src/broadcast.rs | |
| parent | 6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 (diff) | |
Use `npm ci` for automated package installation.
From its documentation:
> This command is similar to `npm install`, except it's meant to be used in automated environments such as test platforms, continuous integration, and deployment -- or any situation where you want to make sure you're doing a clean install of your dependencies.
We don't need a clean install, necessarily - just a complete one that matches the package configuration. However, this command is clearly documented as being used for automated environments, and I think integration with another build tool is close enough to that intention to fit.
It also promises not to rewrite `package.json` or `package-lock.json`. (`npm install`, on the other hand, rewrites `package-lock.json` regularly.) As we do not intend to change the source tree when building it, this is the preferred behaviour.
Finally, this fixes a behaviour I encountered where certain `cargo` commands - sometimes including `cargo build` - could completely reformat `package-lock.json` without any warning and without any user-visible rationale for it.
Diffstat (limited to 'src/broadcast.rs')
0 files changed, 0 insertions, 0 deletions
