diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-17 09:12:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 09:12:22 -0500 |
commit | 610b8cc2bf6404d0905cc273b31d85555a6912e9 (patch) | |
tree | 8e7bf0a56a90e6bb33462a86e6d886501fb4c621 /cli/npm/mod.rs | |
parent | f8435d20b0e9408e50bfb24793becc0e476cc285 (diff) |
refactor: add `NpmPackageId` back from deno_graph as `NpmPackageNodeId` (#17804)
The `NpmPackageId` struct is being renamed to `NpmPackageNodeId`. In a
future PR it will be moved down into only npm dependency resolution and
a `NpmPackageId` struct will be introduced in `deno_graph` that only has
the name and version of the package (no peer dependency identifier
information). So a `NpmPackageReq` will map to an `NpmPackageId`, which
will map to an `NpmPackageNodeId` in the npm resolution.
Diffstat (limited to 'cli/npm/mod.rs')
-rw-r--r-- | cli/npm/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/npm/mod.rs b/cli/npm/mod.rs index 7fdf57fbf..4be13707e 100644 --- a/cli/npm/mod.rs +++ b/cli/npm/mod.rs @@ -12,6 +12,7 @@ pub use registry::NpmPackageVersionDistInfo; pub use registry::NpmRegistryApi; pub use registry::RealNpmRegistryApi; pub use resolution::resolve_graph_npm_info; +pub use resolution::NpmPackageNodeId; pub use resolution::NpmResolutionPackage; pub use resolution::NpmResolutionSnapshot; pub use resolvers::NpmPackageResolver; |