Skip to content

Commit

Permalink
chore: handle unresolvable components with matching basename/hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jul 3, 2024
1 parent 9792420 commit 47f481c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/shared/local/moveDetection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ const buildMap =
// ex: All.ListView-meta.xml that have the same name and hash
const resolver = getResolverForFilenames(registry)(ignored.map((i) => i.filename));
ignored
.map((i) => ({ filename: i.filename, simpleKey: toKey(i), cmp: resolveType(resolver)([i.filename])[0] }))
.flatMap((i) =>
resolveType(resolver)([i.filename]).map((cmp) => ({
filename: i.filename,
simpleKey: toKey(i),
cmp,
}))
)
.filter(({ cmp }) => cmp.type.name && cmp.parent?.fullName)
.map(({ cmp, filename, simpleKey: key }) => {
map.set(`${key}${JOIN_CHAR}${cmp.type.name}${JOIN_CHAR}${cmp.parent?.fullName}`, filename);
Expand Down

0 comments on commit 47f481c

Please sign in to comment.