Skip to content

Commit fe5761c

Browse files
committed
build: build all bazel ng_module targets with strict template type checking
1 parent 4da5d26 commit fe5761c

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.circleci/config.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,6 @@ jobs:
400400
# UMD format which is used by Bazel when running tests. UMD processing is in
401401
# progress and tracked with FW-85.
402402
- run: node ./scripts/circleci/setup-angular-snapshots.js --tag 8.1.0-next.1-ivy-aot+82e0b4a
403-
# Disable type checking when building with Ivy. This is necessary because
404-
# type checking is not complete yet and can incorrectly break compilation.
405-
# Issue is tracked with FW-1004.
406-
- run: sed -i "s/\(_ENABLE_NG_TYPE_CHECKING = \)True/\1False/g" tools/defaults.bzl
407403
# Run project tests with ngtsc and the Ivy Angular packages.
408404
- run: yarn bazel build src/... --build_tag_filters=-docs-package --define=compile=aot
409405
- run: yarn bazel test src/... --build_tag_filters=-docs-package --define=compile=aot --test_tag_filters=-e2e
@@ -426,10 +422,6 @@ jobs:
426422

427423
# Setup Angular ivy snapshots built with ngtsc.
428424
- run: node ./scripts/circleci/setup-angular-snapshots.js --tag master-ivy-aot
429-
# Disable type checking when building with Ivy. This is necessary because
430-
# type checking is not complete yet and can incorrectly break compilation.
431-
# Issue is tracked with FW-1004.
432-
- run: sed -i "s/\(_ENABLE_NG_TYPE_CHECKING = \)True/\1False/g" tools/defaults.bzl
433425
# Run project tests with ngtsc and the Ivy Angular packages.
434426
- run: yarn bazel build src/... --build_tag_filters=-docs-package --define=compile=aot
435427
- run: yarn bazel test src/... --build_tag_filters=-docs-package --define=compile=aot --test_tag_filters=-e2e

tools/defaults.bzl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ _DEFAULT_TSCONFIG_BUILD = "//src:bazel-tsconfig-build.json"
1111
_DEFAULT_TSCONFIG_TEST = "//src:bazel-tsconfig-test.json"
1212
_DEFAULT_TS_TYPINGS = "@npm//typescript:typescript__typings"
1313

14-
# Whether Angular type checking should be enabled or not. Enabled by
15-
# default but will be overwritten when running snapshots tests with Ivy
16-
# since type-checking is not complete yet. See FW-1004.
17-
_ENABLE_NG_TYPE_CHECKING = True
18-
1914
# Re-exports to simplify build file load statements
2015
markdown_to_html = _markdown_to_html
2116

@@ -40,7 +35,7 @@ def ts_library(tsconfig = None, deps = [], testonly = False, **kwargs):
4035
**kwargs
4136
)
4237

43-
def ng_module(deps = [], tsconfig = None, testonly = False, **kwargs):
38+
def ng_module(deps = [], tsconfig = None, type_check = True, testonly = False, **kwargs):
4439
if not tsconfig:
4540
tsconfig = _getDefaultTsConfig(testonly)
4641

@@ -60,7 +55,7 @@ def ng_module(deps = [], tsconfig = None, testonly = False, **kwargs):
6055
local_deps = local_deps + [d]
6156

6257
_ng_module(
63-
type_check = _ENABLE_NG_TYPE_CHECKING,
58+
type_check = type_check,
6459
deps = local_deps,
6560
tsconfig = tsconfig,
6661
testonly = testonly,

0 commit comments

Comments
 (0)