Skip to content

Commit 481b0d1

Browse files
committed
Centralize tsconfig.json
1 parent 3a004ca commit 481b0d1

25 files changed

Lines changed: 128 additions & 87 deletions

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"keywords": [],
1616
"cldr-data-coverage": "full",
1717
"workspaces": [
18+
"./packages/tsconfig",
1819
"./packages/base",
1920
"./packages/test/dev-server",
2021
"./packages/test/harness",

packages/api/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"@msinternal/botframework-webchat-cldr-data": "development",
7474
"@msinternal/botframework-webchat-react-valibot": "development",
7575
"@msinternal/botframework-webchat-redux-store": "development",
76+
"@msinternal/botframework-webchat-tsconfig": "development",
7677
"botframework-webchat-core": "production"
7778
},
7879
"pinDependencies": {
@@ -98,6 +99,7 @@
9899
"@msinternal/botframework-webchat-cldr-data": "36.0.0-0",
99100
"@msinternal/botframework-webchat-react-valibot": "^0.0.0-0",
100101
"@msinternal/botframework-webchat-redux-store": "^0.0.0-0",
102+
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
101103
"@types/dom-speech-recognition": "^0.0.6",
102104
"@types/node": "^24.1.0",
103105
"@types/react": "^16.14.65",

packages/api/src/tsconfig.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"downlevelIteration": true,
5-
"jsx": "react",
6-
"module": "ESNext",
7-
"moduleResolution": "Bundler",
8-
"noEmit": true,
9-
"pretty": true,
104
"resolveJsonModule": true, // Required for localization files
11-
"skipLibCheck": true,
12-
"sourceMap": true,
13-
"target": "ESNext"
14-
}
5+
},
6+
"extends": "@msinternal/botframework-webchat-tsconfig/legacy"
157
}

packages/base/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@
5757
"start": "concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
5858
"start:tsup": "npm run build:tsup -- --watch"
5959
},
60+
"localDependencies": {
61+
"@msinternal/botframework-webchat-tsconfig": "development"
62+
},
6063
"pinDependencies": {
6164
"typescript": [
6265
"~5.8.3",
6366
"@typescript-eslint/parser@8.38.0 does not support typescript@5.9.2 yet"
6467
]
6568
},
6669
"devDependencies": {
70+
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
6771
"@tsconfig/strictest": "^2.0.5",
6872
"@types/node": "^24.1.0",
6973
"core-js-pure": "^3.44.0",

packages/base/src/tsconfig.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
4-
"checkJs": false,
5-
"jsx": "react",
6-
"moduleResolution": "Bundler",
7-
"noEmit": true,
8-
"skipLibCheck": true,
9-
"target": "ESNext"
4+
"checkJs": false
105
},
11-
"extends": "@tsconfig/strictest/tsconfig.json"
6+
"extends": "@msinternal/botframework-webchat-tsconfig/current"
127
}

packages/bundle/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"localDependencies": {
6262
"@msinternal/botframework-webchat-base": "development",
6363
"@msinternal/botframework-webchat-react-valibot": "development",
64+
"@msinternal/botframework-webchat-tsconfig": "development",
6465
"@msinternal/isomorphic-react": "development",
6566
"@msinternal/isomorphic-react-dom": "development",
6667
"botframework-directlinespeech-sdk": "production",
@@ -133,6 +134,7 @@
133134
"@babel/preset-typescript": "^7.27.1",
134135
"@msinternal/botframework-webchat-base": "0.0.0-0",
135136
"@msinternal/botframework-webchat-react-valibot": "0.0.0-0",
137+
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
136138
"@msinternal/isomorphic-react": "^0.0.0-0",
137139
"@msinternal/isomorphic-react-dom": "^0.0.0-0",
138140
"@types/dom-speech-recognition": "^0.0.6",

packages/bundle/src/tsconfig.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
4-
"jsx": "react",
5-
"module": "ESNext",
6-
"moduleResolution": "Bundler",
7-
"noEmit": true,
8-
"skipLibCheck": true,
9-
"target": "ESNext"
10-
}
2+
"extends": "@msinternal/botframework-webchat-tsconfig/legacy"
113
}

packages/component/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@msinternal/botframework-webchat-base": "development",
7373
"@msinternal/botframework-webchat-react-valibot": "development",
7474
"@msinternal/botframework-webchat-styles": "development",
75+
"@msinternal/botframework-webchat-tsconfig": "development",
7576
"botframework-webchat-api": "production",
7677
"botframework-webchat-core": "production"
7778
},
@@ -108,6 +109,7 @@
108109
"@msinternal/botframework-webchat-base": "0.0.0-0",
109110
"@msinternal/botframework-webchat-react-valibot": "^0.0.0-0",
110111
"@msinternal/botframework-webchat-styles": "0.0.0-0",
112+
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
111113
"@types/mdast": "^4.0.4",
112114
"@types/node": "^24.1.0",
113115
"@types/react": "^16.14.65",
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
4-
"downlevelIteration": true,
5-
"jsx": "react",
6-
"module": "ESNext",
7-
"moduleResolution": "Bundler",
8-
"noEmit": true,
9-
"skipLibCheck": true,
10-
"target": "ESNext"
4+
"downlevelIteration": true
115
},
12-
"extends": [
13-
"@msinternal/botframework-webchat-styles/tsconfig.json"
14-
]
6+
"extends": "@msinternal/botframework-webchat-tsconfig/current"
157
}

0 commit comments

Comments
 (0)