Skip to content

Commit 334f1fc

Browse files
committed
Build package on CI
* No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
1 parent 1c63012 commit 334f1fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
- run: sudo cp ./.circleci/bazel.rc /etc/bazel.bazelrc
4949

5050
# TODO(jelbourn): Update this command to run all tests if the Bazel issues have been fixed.
51+
- run: bazel build src/cdk:npm_package
5152
- run: bazel test src/{cdk,lib}/schematics:unit_tests
5253

5354
- save_cache:

tools/bazel.rc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ build --workspace_status_command=./tools/bazel-stamp-vars.sh
4747
# running as daemons, and cache SourceFile AST's to reduce parse time.
4848
build --strategy=TypeScriptCompile=worker --strategy=AngularTemplateCompile=worker
4949

50-
# Use the legacy compiler. We don't want to compile using Ivy yet.
51-
build --define=compile=legacy
50+
# Use the new "ngtsc" compiler strategy. We don't want to compile with Ivy nor with the
51+
# legacy compiler that doesn't handle `providedIn` properly.
52+
build --define=compile=local

0 commit comments

Comments
 (0)