From 0fe097759f175a8727ff9353bf9570acfe25765c Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 27 May 2025 00:11:06 -0400 Subject: Create dedicated check scripts for lockfile accuracy. There isn't a corresponding fix script for this as the lockfiles are rebuilt every time you run a command that resolves dependencies, in either `cargo` or `npm`. Furthermore, `cargo build` (and anything else that runs `build.rs`) will implicitly run `npm install` and update `package-lock.json` in the process. --- tools/check-lockfiles | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tools/check-lockfiles (limited to 'tools') diff --git a/tools/check-lockfiles b/tools/check-lockfiles new file mode 100755 index 0000000..5e27fa7 --- /dev/null +++ b/tools/check-lockfiles @@ -0,0 +1,11 @@ +#!/bin/bash -e + +## tools/check-lockfiles +## +## Verifies that the various dependency lockfiles used in this project match +## the dependencies configured. + +cd "$(dirname "$0")/.." + +npm ci --dry-run +cargo update --locked --workspace -- cgit v1.2.3