From 89c5aa85984eabd300818f8275e3970f12a89754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 1 Nov 2022 00:07:36 +0100 Subject: fix(lock): Additive lock file (#16500) This commit changes lockfile to be "additive" - ie. integrity check only fails if file/package is already specified in the lockfile, but its integrity doesn't match. If file/package is not present in the lockfile, it will be added to the lockfile and the lockfile will be written to disk. --- cli/npm/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/npm') diff --git a/cli/npm/mod.rs b/cli/npm/mod.rs index 738e1766f..1c37276db 100644 --- a/cli/npm/mod.rs +++ b/cli/npm/mod.rs @@ -7,7 +7,11 @@ mod resolvers; mod semver; mod tarball; +#[cfg(test)] +pub use self::semver::NpmVersion; pub use cache::NpmCache; +#[cfg(test)] +pub use registry::NpmPackageVersionDistInfo; pub use registry::NpmRegistryApi; pub use resolution::NpmPackageId; pub use resolution::NpmPackageReference; -- cgit v1.2.3