Skip to content

Commit 0787bb8

Browse files
committed
[infra] Restructured tsconfig files
All apps/packages now extend a common tsconfig.options.json and only add project specific changes in their own configs. Removed tsconfig.build.json in code-infra since there is no build step tehre.
1 parent 509594d commit 0787bb8

File tree

12 files changed

+39
-93
lines changed

12 files changed

+39
-93
lines changed
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"target": "ES2022",
44
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"strict": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"noFallthroughCasesInSwitch": true,
12-
"module": "esnext",
13-
"moduleResolution": "bundler",
145
"resolveJsonModule": true,
15-
"isolatedModules": true,
16-
"noEmit": true,
176
"jsx": "react-jsx",
18-
"outDir": "./build",
19-
"composite": true
7+
"outDir": "build",
8+
"allowJs": true
209
},
2110
"include": ["src", "functions"]
2211
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@mui/internal-code-infra": "workspace:*",
4040
"@octokit/rest": "^22.0.0",
4141
"@tsconfig/node22": "^22.0.2",
42+
"@types/babel__core": "^7.20.5",
4243
"@types/node": "^24.3.1",
4344
"@types/semver": "^7.7.1",
4445
"@typescript-eslint/eslint-plugin": "8.42.0",
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
64
"allowJs": true,
75
"checkJs": true,
8-
"skipLibCheck": true,
9-
"strict": true,
10-
"esModuleInterop": true,
116
"resolveJsonModule": true,
12-
"isolatedModules": true,
13-
"outDir": "./build",
14-
"noEmit": true,
15-
"composite": true
7+
"outDir": "build"
168
},
17-
"include": ["."],
18-
"exclude": ["node_modules", "build", "__fixtures__"]
9+
"include": ["*.js", "vite.config.mts"]
1910
}

packages/babel-plugin-resolve-imports/tsconfig.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
64
"allowJs": true,
75
"checkJs": true,
8-
"skipLibCheck": true,
9-
"strict": true,
10-
"esModuleInterop": true,
116
"resolveJsonModule": true,
12-
"isolatedModules": true,
13-
"outDir": "./build",
14-
"noEmit": true,
15-
"composite": true
7+
"outDir": "build"
168
},
179
"include": ["."],
1810
"exclude": ["node_modules", "build", "__fixtures__"]

packages/bundle-size-checker/tsconfig.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "nodenext",
5-
"moduleResolution": "nodenext",
64
"allowJs": true,
75
"checkJs": true,
8-
"skipLibCheck": true,
9-
"strict": true,
10-
"esModuleInterop": true,
116
"resolveJsonModule": true,
12-
"isolatedModules": true,
13-
"outDir": "./build",
14-
"noEmit": true,
15-
"composite": true
7+
"outDir": "build"
168
},
179
"include": ["src"],
1810
"exclude": ["node_modules", "build"]

packages/code-infra/tsconfig.build.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/code-infra/tsconfig.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"composite": true,
4-
"target": "ES2022",
5-
"module": "es2020",
6-
"moduleResolution": "bundler",
74
"allowJs": true,
85
"checkJs": true,
9-
"skipLibCheck": true,
10-
"strict": true,
11-
"esModuleInterop": true,
12-
"resolveJsonModule": true,
13-
"isolatedModules": true,
14-
"outDir": "./build",
15-
"noEmit": true
6+
"outDir": "build"
167
},
17-
"include": ["src"],
18-
"exclude": ["node_modules", "build"]
8+
"include": ["src", "bin"]
199
}

packages/docs-infra/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.options.json",
33
"compilerOptions": {
4-
"skipLibCheck": true,
5-
"module": "es2020",
6-
"moduleResolution": "bundler",
74
"resolveJsonModule": true,
85
"types": ["react", "node", "csstype"]
96
},

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
2-
"compilerOptions": {
3-
"composite": true,
4-
"declaration": true,
5-
"declarationMap": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"forceConsistentCasingInFileNames": true,
9-
"strict": true,
10-
"noEmit": true
11-
},
2+
"extends": "./tsconfig.options.json",
123
"references": [
134
{ "path": "apps/code-infra-dashboard" },
145
{ "path": "packages/babel-plugin-minify-errors" },

0 commit comments

Comments
 (0)