summaryrefslogtreecommitdiff
path: root/cli/resolver.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-07 09:43:05 +0200
committerGitHub <noreply@github.com>2024-08-07 07:43:05 +0000
commit04473c04ed59cc2a987af3405074591fbc1341a4 (patch)
tree50d56d1990328a6d32627e74ef73514525d78fde /cli/resolver.rs
parent4fa8869f2487749a9f190cb3047f4f3e6d571f27 (diff)
fix(compile): support workspace members importing other members (#24909)
Diffstat (limited to 'cli/resolver.rs')
-rw-r--r--cli/resolver.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/resolver.rs b/cli/resolver.rs
index 18804c025..b72fcd322 100644
--- a/cli/resolver.rs
+++ b/cli/resolver.rs
@@ -535,6 +535,9 @@ impl Resolver for CliGraphResolver {
MappedResolutionError::ImportMap(err) => {
ResolveError::Other(err.into())
}
+ MappedResolutionError::Workspace(err) => {
+ ResolveError::Other(err.into())
+ }
});
let result = match result {
Ok(resolution) => match resolution {
@@ -552,6 +555,9 @@ impl Resolver for CliGraphResolver {
Ok(specifier)
}
}
+ MappedResolution::WorkspaceJsrPackage { specifier, .. } => {
+ Ok(specifier)
+ }
MappedResolution::WorkspaceNpmPackage {
target_pkg_json: pkg_json,
sub_path,