Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Dec 13, 2024
1 parent c6dd811 commit 5447a4e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
use crate::deno_json::ConfigFileError;
use crate::sync::new_rc;
use crate::workspace::Workspace;
use deno_error::{JsError, JsErrorClass};
use deno_error::JsError;
use deno_error::JsErrorClass;
use deno_package_json::PackageJsonDepValue;
use deno_package_json::PackageJsonDepValueParseError;
use deno_package_json::PackageJsonDepWorkspaceReq;
Expand Down Expand Up @@ -155,7 +156,8 @@ pub enum MappedResolution<'a> {
},
}

#[derive(Debug, Clone, Error)]
#[derive(Debug, Clone, Error, JsError)]
#[class(type)]
pub enum WorkspaceResolveError {
#[error("Failed joining '{}' to '{}'. {:#}", .sub_path, .base, .error)]
InvalidExportPath {
Expand All @@ -171,12 +173,15 @@ pub enum WorkspaceResolveError {
},
}

#[derive(Debug, Error)]
#[derive(Debug, Error, JsError)]
pub enum MappedResolutionError {
#[class(inherit)]
#[error(transparent)]
Specifier(#[from] SpecifierError),
#[class(inherit)]
#[error(transparent)]
ImportMap(#[from] ImportMapError),
#[class(inherit)]
#[error(transparent)]
Workspace(#[from] WorkspaceResolveError),
}
Expand Down

0 comments on commit 5447a4e

Please sign in to comment.