Skip to content

Commit

Permalink
fix: wrong path in serialization of workspace resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauorriols committed Oct 1, 2024
1 parent 461cf9e commit 4ea10b0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,11 @@ 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 +805,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 4ea10b0

Please sign in to comment.