summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-04 12:41:51 -0400
committerGitHub <noreply@github.com>2023-11-04 16:41:51 +0000
commite4c947dd2b63726ecc9b4303e03921b6839adade (patch)
tree9619bdb6649d1f460fb02ab8e448c27c95dbfa74 /ext/node/lib.rs
parent0b75a7169b2e123cac04e7ffcaf16a28eb356fd0 (diff)
fix(node): use closest package.json to resolve package.json imports (#21075)
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index 730554f2d..7a43fc4d4 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -81,12 +81,6 @@ pub trait NpmResolver: std::fmt::Debug + MaybeSend + MaybeSync {
mode: NodeResolutionMode,
) -> Result<PathBuf, AnyError>;
- /// Resolves the npm package folder path from the specified path.
- fn resolve_package_folder_from_path(
- &self,
- specifier: &ModuleSpecifier,
- ) -> Result<Option<PathBuf>, AnyError>;
-
fn in_npm_package(&self, specifier: &ModuleSpecifier) -> bool;
fn in_npm_package_at_path(&self, path: &Path) -> bool {