Skip to content

Commit 1635737

Browse files
committed
feat: enable isolatedModules
- Add tsconfig.base.json with shared compiler options - Enable isolatedModules for compatibility with esbuild/swc/Babel - Convert const enums to regular enums (required for isolatedModules) - Remove emitDecoratorMetadata (unused, Deepkit uses type-compiler) - All package tsconfigs now extend the base config BREAKING CHANGE: const enums converted to regular enums in: - MappedModifier (type-spec) - BinaryBigIntType (type) - BrokerType (broker) - RpcMessageRouteType (rpc) - AuthMechanism (mongo)
1 parent 40aab6b commit 1635737

File tree

61 files changed

+162
-779
lines changed

Some content is hidden

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

61 files changed

+162
-779
lines changed

packages/angular-ssr/tsconfig.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"skipLibCheck": true,
4-
"forceConsistentCasingInFileNames": true,
5-
"strict": true,
6-
"noImplicitReturns": true,
7-
"noFallthroughCasesInSwitch": true,
8-
"sourceMap": true,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
114
"useDefineForClassFields": false,
12-
"moduleResolution": "node",
135
"target": "es2022",
14-
"module": "CommonJS",
15-
"esModuleInterop": true,
16-
"outDir": "./dist/cjs",
17-
"declaration": true,
18-
"composite": true
6+
"outDir": "./dist/cjs"
197
},
208
"reflection": true,
219
"include": [
@@ -33,4 +21,4 @@
3321
"path": "../http/tsconfig.json"
3422
}
3523
]
36-
}
24+
}

packages/api-console-api/tsconfig.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
8-
"experimentalDecorators": true,
9-
"emitDecoratorMetadata": true,
104
"useDefineForClassFields": false,
11-
"moduleResolution": "node",
125
"preserveSymlinks": true,
13-
"skipLibCheck": true,
146
"target": "es2022",
15-
"module": "CommonJS",
16-
"esModuleInterop": true,
177
"baseUrl": ".",
188
"outDir": "./dist/cjs",
19-
"declaration": true,
20-
"composite": true,
219
"types": [
2210
"node"
2311
]
@@ -47,4 +35,4 @@
4735
"path": "../type/tsconfig.json"
4836
}
4937
]
50-
}
38+
}

packages/api-console-gui/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compileOnSave": false,
34
"compilerOptions": {
45
"baseUrl": "./",
@@ -10,6 +11,7 @@
1011
"sourceMap": true,
1112
"skipLibCheck": true,
1213
"declaration": false,
14+
"composite": false,
1315
"downlevelIteration": true,
1416
"experimentalDecorators": true,
1517
"moduleResolution": "node",
@@ -66,4 +68,4 @@
6668
"path": "../type-compiler/tsconfig.json"
6769
}
6870
]
69-
}
71+
}

packages/api-console-module/tsconfig.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
8-
"experimentalDecorators": true,
9-
"emitDecoratorMetadata": true,
10-
"moduleResolution": "node",
114
"target": "es2022",
125
"useDefineForClassFields": false,
13-
"skipLibCheck": true,
14-
"module": "CommonJS",
15-
"esModuleInterop": true,
166
"outDir": "./dist/cjs",
17-
"declaration": true,
18-
"composite": true,
197
"types": [
208
"node"
219
]
@@ -61,4 +49,4 @@
6149
"path": "../type/tsconfig.json"
6250
}
6351
]
64-
}
52+
}

packages/app/tsconfig.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"skipLibCheck": true,
4-
"forceConsistentCasingInFileNames": true,
5-
"strict": true,
6-
"noImplicitReturns": true,
7-
"noFallthroughCasesInSwitch": true,
8-
"sourceMap": true,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
11-
"moduleResolution": "node",
12-
"target": "es2020",
13-
"module": "CommonJS",
14-
"esModuleInterop": true,
154
"outDir": "./dist/cjs",
16-
"declaration": true,
17-
"composite": true,
185
"types": [
196
"node"
207
]
@@ -50,4 +37,4 @@
5037
"path": "../workflow/tsconfig.json"
5138
}
5239
]
53-
}
40+
}

packages/bench/tsconfig.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
84
"noImplicitAny": false,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
11-
"moduleResolution": "node",
12-
"target": "es2020",
13-
"module": "CommonJS",
14-
"esModuleInterop": true,
155
"outDir": "./dist/cjs",
16-
"declaration": true,
17-
"composite": true,
186
"types": [
197
"node"
20-
],
21-
"skipLibCheck": true
8+
]
229
},
2310
"reflection": true,
2411
"include": [
@@ -28,4 +15,4 @@
2815
"tests"
2916
],
3017
"references": []
31-
}
18+
}
Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
8-
"experimentalDecorators": true,
9-
"emitDecoratorMetadata": true,
104
"useDefineForClassFields": false,
11-
"moduleResolution": "node",
12-
"target": "es2020",
13-
"module": "CommonJS",
14-
"skipLibCheck": true,
15-
"esModuleInterop": true,
16-
"outDir": "./dist/cjs",
17-
"declaration": true,
18-
"composite": true
5+
"outDir": "./dist/cjs"
196
},
207
"include": [
218
"src",
@@ -39,4 +26,4 @@
3926
"path": "../type/tsconfig.json"
4027
}
4128
]
42-
}
29+
}

packages/broker/src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @internal
1313
*/
14-
export const enum BrokerType {
14+
export enum BrokerType {
1515
//the first 100 are reserved
1616
Ack,
1717
Error,

packages/broker/tsconfig.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
8-
"experimentalDecorators": true,
9-
"emitDecoratorMetadata": true,
104
"useDefineForClassFields": false,
11-
"moduleResolution": "node",
125
"target": "es2022",
136
"module": "commonjs",
14-
"skipLibCheck": true,
15-
"esModuleInterop": true,
16-
"outDir": "./dist/cjs",
17-
"declaration": true,
18-
"composite": true
7+
"outDir": "./dist/cjs"
198
},
209
"reflection": true,
2110
"include": [
@@ -46,4 +35,4 @@
4635
"path": "../type/tsconfig.json"
4736
}
4837
]
49-
}
38+
}

packages/bson/tsconfig.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
5-
"noImplicitReturns": true,
6-
"noFallthroughCasesInSwitch": true,
7-
"sourceMap": true,
84
"noImplicitAny": false,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
11-
"moduleResolution": "node",
12-
"target": "es2020",
13-
"module": "CommonJS",
14-
"esModuleInterop": true,
155
"outDir": "./dist/cjs",
16-
"declaration": true,
17-
"composite": true,
186
"types": [
197
"bson",
208
"node"
21-
],
22-
"skipLibCheck": true
9+
]
2310
},
2411
"reflection": true,
2512
"include": [
@@ -38,4 +25,4 @@
3825
"path": "../type/tsconfig.json"
3926
}
4027
]
41-
}
28+
}

0 commit comments

Comments
 (0)