Skip to content

Commit

Permalink
fix: wrong path in serialization of workspace resolver (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauorriols authored Oct 2, 2024
1 parent 38cbbc6 commit 3787107
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,13 @@ impl WorkspaceResolver {
})
.collect(),
package_jsons: self
.pkg_jsons
.iter()
.map(|(specifier, pkg_json)| {
.package_jsons()
.map(|pkg_json| {
(
root_dir_url.make_relative_if_descendant(specifier),
serde_json::to_value(&pkg_json.pkg_json).unwrap(),
root_dir_url
.make_relative_if_descendant(&pkg_json.specifier())
.into_owned(),
serde_json::to_value(pkg_json).unwrap(),
)
})
.collect(),
Expand Down Expand Up @@ -806,7 +807,7 @@ pub struct SerializableWorkspaceResolver<'a> {
pub import_map: Option<SerializedWorkspaceResolverImportMap<'a>>,
#[serde(borrow)]
pub jsr_pkgs: Vec<SerializedResolverWorkspaceJsrPackage<'a>>,
pub package_jsons: BTreeMap<Cow<'a, str>, serde_json::Value>,
pub package_jsons: Vec<(String, serde_json::Value)>,
pub pkg_json_resolution: PackageJsonDepResolution,
}

Expand Down

0 comments on commit 3787107

Please sign in to comment.