fix(comparison): retain container-only export shape paths

This commit is contained in:
Kaoru0822 committed 2026-10-06 00:42:19 -07:00
1 parent 132a3a46be
commit 7864d665e1
2 files changed
+291 -1

No files matched your search

+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);