From aebd6620d737949fe05b2b0023a263435e8f85b2 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 18 Feb 2020 23:47:44 +0200 Subject: [PATCH] fix(ngcc): add default config for `angular2-highcharts` (#35527) The package is deprecated (and thus not going to have a new release), but still has ~7000 weekly downloads. Fixes #35399 PR Close #35527 --- .../compiler-cli/ngcc/src/packages/configuration.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/compiler-cli/ngcc/src/packages/configuration.ts b/packages/compiler-cli/ngcc/src/packages/configuration.ts index c8be27ca2f..64c52b7c68 100644 --- a/packages/compiler-cli/ngcc/src/packages/configuration.ts +++ b/packages/compiler-cli/ngcc/src/packages/configuration.ts @@ -91,6 +91,19 @@ export const DEFAULT_NGCC_CONFIG: NgccProjectConfig = { // }, // }, + // The package does not contain any `.metadata.json` files in the root directory but only inside + // `dist/`. Without this config, ngcc does not realize this is a ViewEngine-built Angular + // package that needs to be compiled to Ivy. + 'angular2-highcharts': { + entryPoints: { + '.': { + override: { + main: './index.js', + }, + }, + }, + }, + // The `dist/` directory has a duplicate `package.json` pointing to the same files, which (under // certain configurations) can causes ngcc to try to process the files twice and fail. // Ignore the `dist/` entry-point.