mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
feat(bazel): report error when dependency does not provide JS sources in ng_package (#45470)
Non-JavaScript source-providing targets in the `ng_package` rule can throw-off the entry-point detection and therefore should be flagged. Currently e.g. a genrule-generated static file might unnecessarily cause additional actions to be generated (non-breaking but just unnecessary) PR Close #45470
This commit is contained in:
parent
636909fba7
commit
28e835b4bb
1 changed files with 2 additions and 1 deletions
|
|
@ -572,8 +572,9 @@ _NG_PACKAGE_ATTRS = dict(PKG_NPM_ATTRS, **{
|
|||
allow_single_file = [".txt"],
|
||||
),
|
||||
"deps": attr.label_list(
|
||||
doc = """Other rules that produce JavaScript outputs, such as `ts_library`.""",
|
||||
doc = """ Targets that produce production JavaScript outputs, such as `ts_library`.""",
|
||||
aspects = _NG_PACKAGE_DEPS_ASPECTS,
|
||||
providers = [JSEcmaScriptModuleInfo],
|
||||
cfg = partial_compilation_transition,
|
||||
),
|
||||
"readme_md": attr.label(allow_single_file = [".md"]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue