From a8a4f2c3ea3496d294cc04a5a145ec6fc7c07ffb Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 27 Sep 2024 19:43:45 +0200 Subject: [PATCH] remove workspace special bare resolution --- src/workspace/resolver.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/workspace/resolver.rs b/src/workspace/resolver.rs index 0c7d7db..d162ca4 100644 --- a/src/workspace/resolver.rs +++ b/src/workspace/resolver.rs @@ -543,30 +543,6 @@ impl WorkspaceResolver { }; // 2. Try to resolve the bare specifier to a workspace member - if resolve_error.is_unmapped_bare_specifier() { - for member in &self.jsr_pkgs { - if let Some(path) = specifier.strip_prefix(&member.name) { - if path.is_empty() || path.starts_with('/') { - let path = path.strip_prefix('/').unwrap_or(path); - return self.resolve_workspace_jsr_pkg( - member, - JsrPackageReqReference::from_str(&format!( - "jsr:{}{}/{}", - member.name, - member - .version - .as_ref() - .map(|v| format!("@^{}", v)) - .unwrap_or_else(String::new), - path - )) - .unwrap(), - ); - } - } - } - } - if self.pkg_json_dep_resolution == PackageJsonDepResolution::Enabled { // 2. Attempt to resolve from the package.json dependencies. let mut previously_found_dir = false;