Modify the query-based analyzer to handle cases where a source file is included in the srcs attribute of more than one rule.
Modify the query-based analyzer to handle cases where a source file is included in the srcs attribute of more than one rule.

Add a heuristic that if more that one rule supplies a source file, favor ts_library rules.

PiperOrigin-RevId: 236163673

bazelbuild/rules_typescript,bazelbuild/rules_typescript,bazelbuild/rules_typescript