mirror of
https://github.com/denoland/deno.git
synced 2024-11-05 09:04:41 -05:00
3479bc7661
This PR fixes peer dependency resolution to only resolve peers based on the current graph traversal path. Previously, it would resolve a peers by looking at a graph node's ancestors, which is not correct because graph nodes are shared by different resolutions. It also stores more information about peer dependency resolution in the lockfile.
18 lines
501 B
Rust
18 lines
501 B
Rust
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
mod cache;
|
|
mod registry;
|
|
mod resolution;
|
|
mod resolvers;
|
|
mod tarball;
|
|
|
|
pub use cache::NpmCache;
|
|
#[cfg(test)]
|
|
pub use registry::NpmPackageVersionDistInfo;
|
|
pub use registry::NpmRegistryApi;
|
|
pub use resolution::resolve_graph_npm_info;
|
|
pub use resolution::NpmPackageId;
|
|
pub use resolution::NpmResolutionPackage;
|
|
pub use resolution::NpmResolutionSnapshot;
|
|
pub use resolvers::NpmPackageResolver;
|
|
pub use resolvers::NpmProcessState;
|