mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 17:19:06 -05:00
115a306656
Ensures a dynamic import in a CJS file will consider the referrer as an import for node resolution. Also adds fixes (adds) support for `"resolution-mode"` in TypeScript.
31 lines
926 B
Rust
31 lines
926 B
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
#![deny(clippy::print_stderr)]
|
|
#![deny(clippy::print_stdout)]
|
|
|
|
pub mod analyze;
|
|
pub mod env;
|
|
pub mod errors;
|
|
mod npm;
|
|
mod package_json;
|
|
mod path;
|
|
mod resolution;
|
|
mod sync;
|
|
|
|
pub use deno_package_json::PackageJson;
|
|
pub use npm::InNpmPackageChecker;
|
|
pub use npm::InNpmPackageCheckerRc;
|
|
pub use npm::NpmPackageFolderResolver;
|
|
pub use npm::NpmPackageFolderResolverRc;
|
|
pub use package_json::PackageJsonResolver;
|
|
pub use package_json::PackageJsonResolverRc;
|
|
pub use package_json::PackageJsonThreadLocalCache;
|
|
pub use path::PathClean;
|
|
pub use resolution::parse_npm_pkg_name;
|
|
pub use resolution::resolve_specifier_into_node_modules;
|
|
pub use resolution::NodeResolution;
|
|
pub use resolution::NodeResolutionKind;
|
|
pub use resolution::NodeResolver;
|
|
pub use resolution::ResolutionMode;
|
|
pub use resolution::DEFAULT_CONDITIONS;
|
|
pub use resolution::REQUIRE_CONDITIONS;
|