Merge pull request #698 from kaoru0822-kitauji/fix/export-container-coverage

fix(comparison): retain container-only export shape paths
This commit is contained in:
Kaoru0822
2026-10-06 01:10:13 -07:00
committed by GitHub
2 changed files with 291 additions and 1 deletions
+6 -1
View File
@@ -249,7 +249,12 @@ const diffPair = (
): JavaScriptExportShapeComparisonChange[] => {
const leftFields = new Map(left.fields.map((field) => [field.path, field]));
const rightFields = new Map(right.fields.map((field) => [field.path, field]));
const paths = uniqueSorted([...leftFields.keys(), ...rightFields.keys()]);
const paths = uniqueSorted([
...leftFields.keys(),
...rightFields.keys(),
...left.property_coverage.map(({ path }) => path),
...right.property_coverage.map(({ path }) => path),
]);
return paths.flatMap((path) => {
const leftField = fieldAtPath(left, leftFields, path);
const rightField = fieldAtPath(right, rightFields, path);