Skip to content

Commit d292d46

Browse files
Sebastian WendorfSebastian Wendorf
authored andcommitted
Fixed dependency filtering
1 parent 8f733dc commit d292d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/src/core/processors/dependency-resolution.processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class DependencyResolutionProcessor extends Processor {
112112
for (const dep of dependencies) {
113113
if (!dep.fqn.globalFqn) continue;
114114

115-
if ((!dep.fqn.globalFqn.startsWith('"') && dep.targetType !== "module") || dep.fqn.globalFqn.startsWith(dep.globalSourceFQN)) continue; // skip invalid FQNs and dependencies on own scope
115+
if ((!dep.fqn.globalFqn.startsWith('"') && dep.targetType !== "module") || dep.fqn.globalFqn === dep.globalSourceFQN) continue; // skip invalid FQNs and dependencies with same source and target
116116

117117
if (!depIndex.has(dep.globalSourceFQN)) {
118118
depIndex.set(dep.globalSourceFQN, new Map([[dep.fqn.globalFqn, dep]]));

0 commit comments

Comments
 (0)