Skip to content

Commit b3df90d

Browse files
committed
build(tsc): set target at ES2024 in the base tsconfig
1 parent 5fb1ee6 commit b3df90d

File tree

14 files changed

+70
-66
lines changed

14 files changed

+70
-66
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": "../../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../../../../.."
5+
},
36
"include": ["./**/*", "../../../../../ee/apps/account-service/src/lib"],
47
"exclude": ["./dist", "./ecosystem.config.js", "../../../definition/methods"]
58
}

apps/meteor/tsconfig.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": "@rocket.chat/tsconfig/base.json",
33
"compilerOptions": {
4-
"target": "ES2022",
4+
"rootDir": ".",
5+
56
"module": "ESNext",
6-
"lib": ["esnext", "dom"],
7+
"lib": ["ESNext", "DOM"],
78

89
"allowJs": true,
910
"checkJs": false,
@@ -25,12 +26,6 @@
2526
"meteor/*": ["./node_modules/@types/meteor/*", ".meteor/local/types/packages.d.ts"],
2627
},
2728
"preserveSymlinks": true,
28-
29-
// "sourceMap": true,
30-
// "declaration": true,
31-
// "removeComments": false,
32-
// "emitDecoratorMetadata": true,
33-
// "experimentalDecorators": true,
3429
},
3530
"include": ["./**/*", "./.storybook/**/*", "./jest.config.ts", "./.scripts/**/*"],
3631
"exclude": [
@@ -39,7 +34,8 @@
3934
"./imports/client/**",
4035
"**/dist/**",
4136
"./public/**",
42-
// "./ee/server/services/**"
37+
// "./ee/server/services/**",
38+
// "./**/*.spec.ts"
4339
],
4440
"ts-node": {
4541
"files": false,
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"target": "es2022",
6-
"module": "ESNext",
4+
"rootDir": "./src",
5+
"outDir": "./dist",
6+
"module": "esnext",
77
"declaration": true,
88
"declarationMap": true,
9-
"sourceMap": true,
9+
"sourceMap": true
1010
},
11-
"exclude": ["**/*.spec.ts"],
11+
"include": ["./src"],
12+
"exclude": ["**/*.spec.ts"]
1213
}

packages/base64/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@rocket.chat/tsconfig/base.json",
33
"compilerOptions": {
4-
"rootDir": "src",
5-
},
6-
"include": ["src"]
4+
"rootDir": "."
5+
}
76
}

packages/i18n/tsconfig.build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"outDir": "./dist",
66
"declaration": true
77
},
8-
"include": ["./src/**/*"],
9-
"exclude": ["node_modules", "**/*.spec.ts", "./src/scripts/**/*"]
8+
"include": ["./src"],
9+
"exclude": ["**/*.spec.ts"]
1010
}

packages/i18n/tsconfig.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"extends": "@rocket.chat/tsconfig/base.json",
33
"compilerOptions": {
4-
"target": "es2024",
54
"module": "node18",
65
"moduleResolution": "node16",
76
"rewriteRelativeImportExtensions": true,
8-
"erasableSyntaxOnly": true,
9-
"verbatimModuleSyntax": true,
10-
"esModuleInterop": true,
11-
"rootDirs": ["./src", "./"],
7+
"rootDir": ".",
8+
129
"outDir": "./dist",
13-
"declaration": true,
10+
1411
"allowJs": false,
15-
"lib": ["ES2023"],
16-
},
17-
"include": ["./src/**/*", "./jest.config.ts"],
12+
13+
"esModuleInterop": true,
14+
"erasableSyntaxOnly": true,
15+
"verbatimModuleSyntax": true,
16+
17+
"lib": ["ES2024", "ESNext.Collection"]
18+
}
1819
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"extends": "@rocket.chat/tsconfig/base.json",
33
"compilerOptions": {
4-
"rootDir": "./src",
5-
"outDir": "./dist",
6-
"declaration": true,
7-
"target": "ES2024",
84
"module": "nodenext",
95
"moduleResolution": "nodenext",
6+
"rootDir": "./src",
7+
8+
"declaration": true,
9+
"outDir": "./dist"
1010
},
1111
"include": ["./src"]
1212
}
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "dist",
4+
"rootDir": "./src",
5+
56
"declaration": true,
67
"declarationMap": true,
7-
"sourceMap": true,
8+
"outDir": "dist",
9+
"sourceMap": true
810
},
9-
"exclude": ["**/*.spec.ts"],
11+
"include": ["./src"],
12+
"exclude": ["**/*.spec.ts"]
1013
}

packages/random/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@rocket.chat/tsconfig/base.json",
33
"compilerOptions": {
4-
"rootDir": "src",
5-
},
6-
"include": ["src"]
4+
"rootDir": "."
5+
}
76
}
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "dist",
54
"declaration": true,
65
"declarationMap": true,
6+
"outDir": "dist",
77
"sourceMap": true,
8+
9+
"rootDir": "./src"
810
},
9-
"exclude": ["**/*.spec.ts"],
11+
"include": ["./src"],
12+
"exclude": ["**/*.spec.ts"]
1013
}

0 commit comments

Comments
 (0)