Skip to content

Commit ac71e83

Browse files
committed
fix: tsconfig and tsc build
1 parent 52333a7 commit ac71e83

File tree

83 files changed

+477
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+477
-249
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
./node_modules/.bin/tsc --build \
3535
packages/api-console-module/tsconfig.json \
36+
packages/angular-ssr/tsconfig.json \
3637
packages/broker/tsconfig.json \
3738
packages/bson/tsconfig.json \
3839
packages/core/tsconfig.json \

examples/rpc-websockets-esm/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"strict": true,
44
"experimentalDecorators": true,
55
"moduleResolution": "node",
6-
"target": "ES2022",
6+
"target": "es2020",
77
"esModuleInterop": true,
88
"module": "esnext"
99
},

examples/rpc-websockets/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"strict": true,
44
"experimentalDecorators": true,
55
"moduleResolution": "node",
6-
"target": "ES2022",
6+
"target": "es2020",
77
"esModuleInterop": true,
88
"module": "CommonJS"
99
},

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build:esm": "tsc --build tsconfig.esm.json",
1212
"tsc": "tsc --build",
1313
"postinstall": "lefthook install && sh install-compiler.sh",
14-
"tsc-watch": "tsc --build --watch",
14+
"tsc-watch": "tsc --build --watch tsconfig.json",
1515
"tsc-watch:esm": "tsc --build --watch tsconfig.esm.json",
1616
"clean:all": "npm run clean && npm run clean:modules && npm run clean:lock",
1717
"clean": "find packages/*/dist/* ! -name 'package.json' -type f -exec rm -f {} +; rm -rf packages/*/.angular; rm -rf website/.angular; npm run postinstall",
@@ -63,6 +63,7 @@
6363
"src/**/*.ts"
6464
],
6565
"projects": [
66+
"packages/angular-ssr",
6667
"packages/core",
6768
"packages/core-rxjs",
6869
"packages/ui-library",

packages/angular-ssr/tsconfig.esm.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist/esm",
5-
"module": "ES2020"
5+
"module": "es2020"
66
},
77
"references": [
8+
{
9+
"path": "../app/tsconfig.esm.json"
10+
},
11+
{
12+
"path": "../http/tsconfig.esm.json"
13+
}
814
]
915
}

packages/angular-ssr/tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,11 @@
2828
"tests"
2929
],
3030
"references": [
31+
{
32+
"path": "../app/tsconfig.json"
33+
},
34+
{
35+
"path": "../http/tsconfig.json"
36+
}
3137
]
3238
}

packages/api-console-api/tsconfig.esm.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@
55
"module": "ES2020"
66
},
77
"references": [
8+
{
9+
"path": "../bson/tsconfig.esm.json"
10+
},
11+
{
12+
"path": "../core/tsconfig.esm.json"
13+
},
14+
{
15+
"path": "../injector/tsconfig.esm.json"
16+
},
17+
{
18+
"path": "../logger/tsconfig.esm.json"
19+
},
820
{
921
"path": "../rpc/tsconfig.esm.json"
1022
},
1123
{
1224
"path": "../type/tsconfig.esm.json"
1325
}
1426
]
15-
}
27+
}

packages/api-console-api/tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
"src"
2727
],
2828
"references": [
29+
{
30+
"path": "../bson/tsconfig.json"
31+
},
32+
{
33+
"path": "../core/tsconfig.json"
34+
},
35+
{
36+
"path": "../injector/tsconfig.json"
37+
},
38+
{
39+
"path": "../logger/tsconfig.json"
40+
},
2941
{
3042
"path": "../rpc/tsconfig.json"
3143
},

packages/api-console-gui/tsconfig.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
21
{
32
"compileOnSave": false,
43
"compilerOptions": {
@@ -9,12 +8,13 @@
98
"noFallthroughCasesInSwitch": true,
109
"allowSyntheticDefaultImports": true,
1110
"sourceMap": true,
11+
"skipLibCheck": true,
1212
"declaration": false,
1313
"downlevelIteration": true,
1414
"experimentalDecorators": true,
1515
"moduleResolution": "node",
1616
"importHelpers": true,
17-
"target": "ES2022",
17+
"target": "es2020",
1818
"module": "ES2022",
1919
"useDefineForClassFields": false,
2020
"types": [
@@ -32,17 +32,20 @@
3232
"strictTemplates": true
3333
},
3434
"references": [
35+
{
36+
"path": "../api-console-api/tsconfig.json"
37+
},
3538
{
3639
"path": "../bson/tsconfig.json"
3740
},
3841
{
3942
"path": "../core/tsconfig.json"
4043
},
4144
{
42-
"path": "../api-console-api/tsconfig.json"
45+
"path": "../core-rxjs/tsconfig.json"
4346
},
4447
{
45-
"path": "../core-rxjs/tsconfig.json"
48+
"path": "../event/tsconfig.json"
4649
},
4750
{
4851
"path": "../injector/tsconfig.json"
@@ -58,6 +61,12 @@
5861
},
5962
{
6063
"path": "../type/tsconfig.json"
64+
},
65+
{
66+
"path": "../type-compiler/tsconfig.json"
67+
},
68+
{
69+
"path": "../ui-library/tsconfig.json"
6170
}
6271
]
6372
}

packages/api-console-module/tsconfig.esm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
"path": "../type/tsconfig.esm.json"
3737
}
3838
]
39-
}
39+
}

packages/api-console-module/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"emitDecoratorMetadata": true,
1010
"moduleResolution": "node",
1111
"target": "es2020",
12+
"skipLibCheck": true,
1213
"module": "CommonJS",
1314
"esModuleInterop": true,
1415
"outDir": "./dist/cjs",

packages/app/tsconfig.esm.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
{
1515
"path": "../injector/tsconfig.esm.json"
1616
},
17+
{
18+
"path": "../logger/tsconfig.esm.json"
19+
},
1720
{
1821
"path": "../stopwatch/tsconfig.esm.json"
1922
},
@@ -24,4 +27,4 @@
2427
"path": "../workflow/tsconfig.esm.json"
2528
}
2629
]
27-
}
30+
}

packages/app/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
{
3838
"path": "../injector/tsconfig.json"
3939
},
40+
{
41+
"path": "../logger/tsconfig.json"
42+
},
4043
{
4144
"path": "../stopwatch/tsconfig.json"
4245
},

packages/broker/tsconfig.esm.json

+6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
{
1515
"path": "../core-rxjs/tsconfig.esm.json"
1616
},
17+
{
18+
"path": "../event/tsconfig.esm.json"
19+
},
1720
{
1821
"path": "../rpc/tsconfig.esm.json"
1922
},
2023
{
2124
"path": "../type/tsconfig.esm.json"
25+
},
26+
{
27+
"path": "../app/tsconfig.esm.json"
2228
}
2329
]
2430
}

packages/broker/tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,17 @@
3636
{
3737
"path": "../core-rxjs/tsconfig.json"
3838
},
39+
{
40+
"path": "../event/tsconfig.json"
41+
},
3942
{
4043
"path": "../rpc/tsconfig.json"
4144
},
4245
{
4346
"path": "../type/tsconfig.json"
47+
},
48+
{
49+
"path": "../app/tsconfig.json"
4450
}
4551
]
4652
}

packages/bson/tsconfig.esm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"path": "../type/tsconfig.esm.json"
1313
}
1414
]
15-
}
15+
}

packages/bun/tsconfig.esm.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
"module": "ES2020"
66
},
77
"references": [
8-
{
9-
"path": "../core/tsconfig.esm.json"
10-
},
118
{
129
"path": "../type-compiler/tsconfig.esm.json"
1310
}
1411
]
15-
}
12+
}

packages/bun/tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
"tests"
2929
],
3030
"references": [
31-
{
32-
"path": "../core/tsconfig.json"
33-
},
3431
{
3532
"path": "../type-compiler/tsconfig.json"
3633
}

packages/core/tsconfig.esm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"module": "ES2020"
66
},
77
"references": []
8-
}
8+
}

packages/core/tsconfig.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"extends": "../../tsconfig.base.json",
32
"compilerOptions": {
43
"forceConsistentCasingInFileNames": true,
54
"strict": true,
@@ -9,13 +8,17 @@
98
"experimentalDecorators": true,
109
"emitDecoratorMetadata": true,
1110
"moduleResolution": "node",
12-
"target": "es2022",
11+
"target": "es2020",
1312
"module": "CommonJS",
1413
"esModuleInterop": true,
1514
"baseUrl": ".",
1615
"outDir": "./dist/cjs",
1716
"declaration": true,
1817
"composite": true,
18+
"lib": [
19+
"es2020",
20+
"es2022.error"
21+
],
1922
"types": [
2023
"dot-prop",
2124
"node"

packages/create-app/files/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"strict": true,
66
"esModuleInterop": true,
77
"skipLibCheck": true,
8-
"target": "ES2020",
8+
"target": "es2020",
99
"module": "CommonJS",
1010
"moduleResolution": "node"
1111
},

packages/create-app/tsconfig.esm.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
"module": "ES2020"
66
},
77
"references": [
8+
{
9+
"path": "../app/tsconfig.esm.json"
10+
},
811
{
912
"path": "../core/tsconfig.esm.json"
1013
},
1114
{
12-
"path": "../app/tsconfig.esm.json"
15+
"path": "../logger/tsconfig.esm.json"
16+
},
17+
{
18+
"path": "../type/tsconfig.esm.json"
1319
}
1420
]
15-
}
21+
}

packages/create-app/tsconfig.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@
2424
],
2525
"reflection": true,
2626
"references": [
27+
{
28+
"path": "../app/tsconfig.json"
29+
},
2730
{
2831
"path": "../core/tsconfig.json"
2932
},
3033
{
31-
"path": "../app/tsconfig.json"
34+
"path": "../logger/tsconfig.json"
35+
},
36+
{
37+
"path": "../type/tsconfig.json"
3238
}
3339
]
3440
}

packages/desktop-ui/tsconfig.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
"downlevelIteration": true,
88
"sourceMap": true,
99
"strict": true,
10-
"target": "es2021",
10+
"target": "es2020",
1111
"useDefineForClassFields": false,
1212
"noImplicitAny": true,
1313
"esModuleInterop": true,
1414
"types": [
1515
"fs-extra",
1616
"node"
1717
],
18-
"lib": [
19-
"es2018",
20-
"dom"
21-
],
2218
"paths": {
2319
"angular-desktop-ui": [
2420
"dist/"

0 commit comments

Comments
 (0)