Skip to content

Commit

Permalink
fix(core): negative implicit dependencies should exclude statically d…
Browse files Browse the repository at this point in the history
…etected dependencies (#15546)

(cherry picked from commit 9acd775)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Mar 15, 2023
1 parent 6e49fae commit 4dd0d97
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,11 @@ export function normalizeImplicitDependencies(
projectNames,
projectsSet
);
return matches.filter((x) => x !== source);
return (
matches
.filter((x) => x !== source)
// implicit dependencies that start with ! should hang around, to be processed by
// implicit-project-dependencies.ts after explicit deps are added to graph.
.concat(implicitDependencies.filter((x) => x.startsWith('!')))
);
}

0 comments on commit 4dd0d97

Please sign in to comment.