mirror of
https://github.com/denoland/deno
synced 2024-08-27 12:00:17 +00:00
![David Sherret](/assets/img/avatar_default.png)
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>
22 lines
585 B
Rust
22 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;
|