Skip to content

Commit 0ec0ad8

Browse files
committed
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 81531d1)
1 parent f14ab6a commit 0ec0ad8

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.lib.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2015",
54
"declaration": true,
65
"declarationMap": true,
76
"inlineSources": true,
8-
"types": [],
9-
"lib": [
10-
"dom",
11-
"es2018"
12-
]
7+
"types": []
138
},
149
"exclude": [
1510
"src/test.ts",

packages/schematics/angular/library/files/tsconfig.lib.json.template

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,10 @@
33
"extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json",
44
"compilerOptions": {
55
"outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/lib",
6-
"target": "es2015",
76
"declaration": true,
87
"declarationMap": true,
98
"inlineSources": true,
10-
"types": [],
11-
"lib": [
12-
"dom",
13-
"es2018"
14-
]
9+
"types": []
1510
},
1611
"exclude": [
1712
"src/test.ts",

0 commit comments

Comments
 (0)