feat(bazel): allow ng_module rules to control whether type checking is enabled (#21460)
Defaults to true which is different than `ngc` which defaults to false. PR Close #21460
This commit is contained in:
parent
9b5a485243
commit
cffa0fe734
@ -74,6 +74,7 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs):
|
|||||||
"generateCodeForLibraries": False,
|
"generateCodeForLibraries": False,
|
||||||
"allowEmptyCodegenFiles": True,
|
"allowEmptyCodegenFiles": True,
|
||||||
"enableSummariesForJit": True,
|
"enableSummariesForJit": True,
|
||||||
|
"fullTemplateTypeCheck": ctx.attr.type_check,
|
||||||
# FIXME: wrong place to de-dupe
|
# FIXME: wrong place to de-dupe
|
||||||
"expectedOut": depset([o.path for o in expected_outs]).to_list(),
|
"expectedOut": depset([o.path for o in expected_outs]).to_list(),
|
||||||
"preserveWhitespaces": False,
|
"preserveWhitespaces": False,
|
||||||
@ -262,6 +263,8 @@ NG_MODULE_ATTRIBUTES = {
|
|||||||
".html",
|
".html",
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
"type_check": attr.bool(default = True),
|
||||||
|
|
||||||
"no_i18n": attr.bool(default = False),
|
"no_i18n": attr.bool(default = False),
|
||||||
|
|
||||||
"compiler": attr.label(
|
"compiler": attr.label(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user