build: correctly collect summary files with bazel (#18912)

PR Close #18912
This commit is contained in:
Tobias Bosch 2017-08-30 16:10:58 -07:00 committed by Jason Aden
parent 667473c32d
commit a1293b26ef
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def _collect_summaries_aspect_impl(target, ctx):
results = target.angular.summaries if hasattr(target, "angular") else depset()
# If we are visiting empty-srcs ts_library, this is a re-export
srcs = target.srcs if hasattr(target, "srcs") else []
srcs = ctx.rule.attr.srcs if hasattr(ctx.rule.attr, "srcs") else []
# "re-export" rules should expose all the files of their deps
if not srcs: