diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-11-01 00:07:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 00:07:36 +0100 |
commit | 89c5aa85984eabd300818f8275e3970f12a89754 (patch) | |
tree | fcebd710f4d4015ffdc022f1c78574de78ab29e9 /cli/npm | |
parent | cb08b4683fc3a8feadc4a7590dc2db922ca3a6ed (diff) |
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.
Diffstat (limited to 'cli/npm')
-rw-r--r-- | cli/npm/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; |