build: derive ts_library dep from jasmine_node_test boostrap label if it ends in _es5
(#34589)
PR Close #34589
This commit is contained in:
@ -281,6 +281,11 @@ def jasmine_node_test(bootstrap = [], **kwargs):
|
||||
for label in bootstrap:
|
||||
deps += [label]
|
||||
templated_args += ["--node_options=--require=$(rlocation $(location %s))" % label]
|
||||
if label.endswith("_es5"):
|
||||
# If this label is a filegroup derived from a ts_library then automtically
|
||||
# add the ts_library target (which is the label sans `_es5`) to deps so we pull
|
||||
# in all of its transitive deps
|
||||
deps += [label[:-4]]
|
||||
|
||||
_jasmine_node_test(
|
||||
deps = deps,
|
||||
|
Reference in New Issue
Block a user