From 0ec0ad8a4dba4a778b368c5cd76ef13fb370b310 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 8 Oct 2021 13:55:34 +0200 Subject: [PATCH] fix(@schematics/angular): remove `target` and `lib` options for library tsconfig The `target` option is set directly in ng-packagr binary and cannot be overridden, while the `lib` option is inherited from the root level tsconfig. (cherry picked from commit 81531d1b64df8cfc10b514631e157d1e048d2efe) --- .../test/hello-world-lib/projects/lib/tsconfig.lib.json | 7 +------ .../angular/library/files/tsconfig.lib.json.template | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.lib.json b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.lib.json index 63dd9b693892..953df1b95597 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.lib.json +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.lib.json @@ -1,15 +1,10 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es2015", "declaration": true, "declarationMap": true, "inlineSources": true, - "types": [], - "lib": [ - "dom", - "es2018" - ] + "types": [] }, "exclude": [ "src/test.ts", diff --git a/packages/schematics/angular/library/files/tsconfig.lib.json.template b/packages/schematics/angular/library/files/tsconfig.lib.json.template index 202a2d21c6f9..353a24b4ac75 100644 --- a/packages/schematics/angular/library/files/tsconfig.lib.json.template +++ b/packages/schematics/angular/library/files/tsconfig.lib.json.template @@ -3,15 +3,10 @@ "extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json", "compilerOptions": { "outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/lib", - "target": "es2015", "declaration": true, "declarationMap": true, "inlineSources": true, - "types": [], - "lib": [ - "dom", - "es2018" - ] + "types": [] }, "exclude": [ "src/test.ts",