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:
Greg Magolan
2020-01-08 11:09:36 -08:00
committed by atscott
parent 67044ef55d
commit 79a0d007b4
42 changed files with 5 additions and 50 deletions

View File

@ -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,