Skip to content

Commit 70173f6

Browse files
authored
Merge pull request #1827 from rx-angular/fix-tsconfig-mess
chore: align tsconfig lib and module settings
2 parents a4acf9e + 42889ce commit 70173f6

File tree

8 files changed

+42
-15
lines changed

8 files changed

+42
-15
lines changed

apps/demos/tsconfig.app.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
5-
"lib": ["ES2018", "DOM"],
65
"types": []
76
},
87
"files": ["src/main.ts", "src/polyfills.ts"],

libs/cdk/tsconfig.lib.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "es2015",
54
"inlineSources": true,
6-
"importHelpers": true,
7-
"lib": ["dom", "es2018"]
5+
"importHelpers": true
86
},
97
"angularCompilerOptions": {
108
"enableIvy": true,

libs/state/tsconfig.lib.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "es2015",
54
"inlineSources": true,
65
"declaration": true,
76
"declarationMap": true,
87
"strictNullChecks": true,
9-
"noImplicitAny": true,
10-
"lib": ["dom", "es2018"]
8+
"noImplicitAny": true
119
},
1210
"angularCompilerOptions": {
1311
"enableIvy": true,

libs/template/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build-lib": {
99
"executor": "@angular-devkit/build-angular:ng-packagr",
1010
"options": {
11-
"tsConfig": "libs/template/tsconfig.lib.json",
11+
"tsConfig": "libs/template/tsconfig.prod.json",
1212
"project": "libs/template/ng-package.json"
1313
},
1414
"dependsOn": ["^build"],

libs/template/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
{
77
"path": "./tsconfig.lib.json"
88
},
9+
{
10+
"path": "./tsconfig.prod.json"
11+
},
912
{
1013
"path": "./tsconfig.spec.json"
1114
},

libs/template/tsconfig.lib.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "es2015",
54
"inlineSources": true,
6-
"importHelpers": true,
7-
"lib": ["dom", "es2018"],
8-
"paths": {
9-
"@rx-angular/cdk/*": ["dist/libs/cdk/*"]
10-
}
5+
"importHelpers": true
116
},
127
"angularCompilerOptions": {
138
"enableIvy": true,

libs/template/tsconfig.prod.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"inlineSources": true,
5+
"importHelpers": true,
6+
"paths": {
7+
"@rx-angular/cdk/*": ["dist/libs/cdk/*"]
8+
}
9+
},
10+
"angularCompilerOptions": {
11+
"enableIvy": true,
12+
"compilationMode": "partial",
13+
"annotateForClosureCompiler": true,
14+
"skipTemplateCodegen": true,
15+
"strictMetadataEmit": true,
16+
"fullTemplateTypeCheck": true,
17+
"strictInjectionParameters": true,
18+
"enableResourceInlining": true
19+
},
20+
"include": ["**/*.ts"],
21+
"exclude": [
22+
"src/test-setup.ts",
23+
"**/*.spec.ts",
24+
"**/*.test.ts",
25+
"jest.config.ts",
26+
"cypress/**/*",
27+
"cypress.config.ts",
28+
"**/*.cy.ts",
29+
"**/*.cy.js",
30+
"**/*.cy.tsx",
31+
"**/*.cy.jsx",
32+
"**/tests/*.ts"
33+
]
34+
}

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"importHelpers": true,
1212
"target": "ES2022",
1313
"module": "esnext",
14-
"lib": ["es2017", "dom"],
14+
"lib": ["es2022", "dom"],
1515
"skipLibCheck": true,
1616
"skipDefaultLibCheck": true,
1717
"baseUrl": ".",

0 commit comments

Comments
 (0)