We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2568c0 commit 41701cdCopy full SHA for 41701cd
src/files/inheritance.ts
@@ -50,7 +50,7 @@ export function* walkBack<T extends string[]>(
50
if (candidates.length > 1) {
51
const exactMatch = candidates.find((file) => {
52
const { entities } = readEntities(file.name)
53
- return Object.keys(sourceParts.entities).every((entity) =>
+ return [...Object.keys(sourceParts.entities), ...(targetEntities ?? [])].every((entity) =>
54
entities[entity] === sourceParts.entities[entity]
55
)
56
})
0 commit comments