From 53e8a57d74c0f02e326caa7311889750b7a231b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Thu, 20 Apr 2023 21:41:46 +0100 Subject: [PATCH] fix(angular): build plugin runtime code with ts module option set to esnext --- packages-legacy/angular/project.json | 2 +- packages-legacy/angular/tsconfig.json | 3 --- packages-legacy/angular/tsconfig.runtime.json | 9 +++++++++ packages/angular/project.json | 2 +- packages/angular/tsconfig.lib.json | 3 --- packages/angular/tsconfig.lib.runtime.json | 9 +++++++++ 6 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 packages-legacy/angular/tsconfig.runtime.json create mode 100644 packages/angular/tsconfig.lib.runtime.json diff --git a/packages-legacy/angular/project.json b/packages-legacy/angular/project.json index e251e3e9601a6..3070af7673cf1 100644 --- a/packages-legacy/angular/project.json +++ b/packages-legacy/angular/project.json @@ -9,7 +9,7 @@ "executor": "@nrwl/angular:package", "options": { "project": "packages-legacy/angular/ng-package.json", - "tsConfig": "packages-legacy/angular/tsconfig.json" + "tsConfig": "packages-legacy/angular/tsconfig.runtime.json" }, "outputs": ["build/packages/angular-legacy"] }, diff --git a/packages-legacy/angular/tsconfig.json b/packages-legacy/angular/tsconfig.json index 8654d01991aca..fa90524f19d36 100644 --- a/packages-legacy/angular/tsconfig.json +++ b/packages-legacy/angular/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "angularCompilerOptions": { - "compilationMode": "partial" - }, "include": ["**/*.ts"], "files": ["index.ts"] } diff --git a/packages-legacy/angular/tsconfig.runtime.json b/packages-legacy/angular/tsconfig.runtime.json new file mode 100644 index 0000000000000..8c04a878ac36d --- /dev/null +++ b/packages-legacy/angular/tsconfig.runtime.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext" + }, + "angularCompilerOptions": { + "compilationMode": "partial" + } +} diff --git a/packages/angular/project.json b/packages/angular/project.json index c70f79e3189e5..1afc0685b25a2 100644 --- a/packages/angular/project.json +++ b/packages/angular/project.json @@ -10,7 +10,7 @@ "executor": "@nrwl/angular:package", "options": { "project": "packages/angular/ng-package.json", - "tsConfig": "packages/angular/tsconfig.lib.json" + "tsConfig": "packages/angular/tsconfig.lib.runtime.json" }, "outputs": ["build/packages/angular"] }, diff --git a/packages/angular/tsconfig.lib.json b/packages/angular/tsconfig.lib.json index a19f0353241f0..b54ee18bfc3ee 100644 --- a/packages/angular/tsconfig.lib.json +++ b/packages/angular/tsconfig.lib.json @@ -6,9 +6,6 @@ "declaration": true, "types": ["node"] }, - "angularCompilerOptions": { - "compilationMode": "partial" - }, "exclude": [ "**/*.spec.ts", "**/*.test.ts", diff --git a/packages/angular/tsconfig.lib.runtime.json b/packages/angular/tsconfig.lib.runtime.json new file mode 100644 index 0000000000000..8224d616b975c --- /dev/null +++ b/packages/angular/tsconfig.lib.runtime.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.lib.json", + "compilerOptions": { + "module": "esnext" + }, + "angularCompilerOptions": { + "compilationMode": "partial" + } +}