Skip to content

Commit

Permalink
Merge branch 'fix-workspace-serialization' into package_json_0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauorriols committed Oct 1, 2024
2 parents 71d32ed + fdc0412 commit a628e44
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 a628e44

Please sign in to comment.