mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
a6ca4d0d61
This changes npm specifiers to be handled by deno_graph and resolved to an npm package name and version when the specifier is encountered. It also slightly changes how npm specifier resolution occurs—previously it would collect all the npm specifiers and resolve them all at once, but now it resolves them on the fly as they are encountered in the module graph. https://github.com/denoland/deno_graph/pull/232 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
21 lines
585 B
Rust
21 lines
585 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::should_sync_download;
|
|
pub use cache::NpmCache;
|
|
#[cfg(test)]
|
|
pub use registry::NpmPackageVersionDistInfo;
|
|
pub use registry::NpmRegistryApi;
|
|
#[cfg(test)]
|
|
pub use registry::TestNpmRegistryApiInner;
|
|
pub use resolution::NpmPackageId;
|
|
pub use resolution::NpmResolution;
|
|
pub use resolution::NpmResolutionPackage;
|
|
pub use resolution::NpmResolutionSnapshot;
|
|
pub use resolvers::NpmPackageResolver;
|
|
pub use resolvers::NpmProcessState;
|