From 6945f7978e33bfdec029b19cd646d676c7e3cc79 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 5 Mar 2019 19:18:50 +0100 Subject: [PATCH] build(docs-infra): ivy prebuild script should not run ngcc for all formats (#29122) Currently when building AIO with Ivy, we run Ngcc and transform all found formats. This potentially slows down the build (and therefore the "test_aio_local_ivy" job). Since it's not necessary to build all formats, and we only need "fesm5" and "fesm2015", we can explicitly specify the required formats. **Note**: Currently this does not have any big effect, because Angular Material does not ship ES2015/ES5 files. The change primarily just suppresses the Ngcc messages for Material not providing ES2015/ES5 entry-points. Technically if new non-Ivy packages are added to AIO, this speeds up the build as we don't build the unused formats. PR Close #29122 --- aio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/package.json b/aio/package.json index 46f717f76d..bfbb1566d7 100644 --- a/aio/package.json +++ b/aio/package.json @@ -17,7 +17,7 @@ "build": "yarn ~~build", "prebuild-local": "yarn setup-local", "build-local": "yarn ~~build", - "prebuild-with-ivy": "yarn setup-local && yarn ivy-ngcc", + "prebuild-with-ivy": "yarn setup-local && yarn ivy-ngcc --formats fesm2015 fesm5", "build-with-ivy": "node scripts/build-with-ivy", "extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js b5e796a03", "lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",