Skip to content

Commit 729779b

Browse files
committed
chore: Align TypeScript configuration to JavaScript repo
1 parent df2c876 commit 729779b

46 files changed

Lines changed: 100 additions & 145 deletions

Some content is hidden

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

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"editor.defaultFormatter": "oxc.oxc-vscode"
2+
"editor.defaultFormatter": "oxc.oxc-vscode",
3+
"js/ts.tsdk.path": "node_modules/typescript/lib"
34
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"packages/eslint-configs",
1414
"packages/playground",
1515
"packages/rollup-plugin",
16-
"packages/tsconfigs",
1716
"packages/vite-plugin",
1817
"packages/webpack-plugin",
1918
"packages/integration-tests-next"
@@ -34,10 +33,14 @@
3433
"fix:formatting": "oxfmt ."
3534
},
3635
"devDependencies": {
36+
"@types/node": "^18.6.3",
37+
"@sentry-internal/eslint-plugin-sdk": "^10.53.1",
38+
"@sentry-internal/typescript": "^10.53.1",
3739
"minimatch": "^10.2.2",
3840
"npm-run-all": "^4.1.5",
3941
"nx": "22.5.2",
40-
"oxfmt": "^0.33.0"
42+
"oxfmt": "^0.33.0",
43+
"typescript": "~5.8.0"
4144
},
4245
"volta": {
4346
"node": "22.22.0",

packages/babel-plugin-component-annotate/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
ignorePatterns: [".eslintrc.js", "dist", "rollup.config.mjs"],
66
parserOptions: {
77
tsconfigRootDir: __dirname,
8-
project: ["./src/tsconfig.json", "./test/tsconfig.json"],
8+
project: ["./tsconfig.json", "./test/tsconfig.json"],
99
},
1010
globals: {
1111
Set: "readonly",

packages/babel-plugin-component-annotate/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
4141
"build:npm": "npm pack",
4242
"check:types": "run-p check:types:src check:types:test",
43-
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
43+
"check:types:src": "tsc --project ./tsconfig.json --noEmit",
4444
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
4545
"clean": "run-s clean:build",
4646
"clean:all": "run-p clean clean:deps",
@@ -54,13 +54,11 @@
5454
"@types/babel__core": "^7.20.5",
5555
"@babel/preset-react": "^7.23.3",
5656
"@sentry-internal/eslint-config": "5.3.0",
57-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.3.0",
5857
"@types/node": "^18.6.3",
5958
"eslint": "^8.18.0",
6059
"vitest": "^4.0.0",
6160
"premove": "^4.0.0",
62-
"rolldown": "^1.0.0",
63-
"typescript": "^4.7.4"
61+
"rolldown": "^1.0.0"
6462
},
6563
"volta": {
6664
"extends": "../../package.json"

packages/babel-plugin-component-annotate/src/tsconfig.json

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

packages/babel-plugin-component-annotate/test/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "../src/tsconfig.json",
3+
"extends": "../tsconfig.json",
44
"include": ["../src/**/*", "./**/*"],
55
"compilerOptions": {
66
"types": ["node"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../../tsconfig.json",
4+
"include": ["./src/**/*.ts", "./package.json"]
5+
}

packages/babel-plugin-component-annotate/types.tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "./src/tsconfig.json",
3+
"extends": "./tsconfig.json",
44
"include": ["./src/**/*"],
55
"compilerOptions": {
66
"rootDir": "./src",

packages/bundler-plugin-core/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
],
1313
parserOptions: {
1414
tsconfigRootDir: __dirname,
15-
project: ["./src/tsconfig.json", "./test/tsconfig.json"],
15+
project: ["./tsconfig.json", "./test/tsconfig.json"],
1616
},
1717
env: {
1818
node: true,

packages/bundler-plugin-core/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
4343
"build:npm": "npm pack",
4444
"check:types": "run-p check:types:src check:types:test",
45-
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
45+
"check:types:src": "tsc --project ./tsconfig.json --noEmit",
4646
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
4747
"clean": "run-s clean:build",
4848
"clean:all": "run-p clean clean:deps",
@@ -64,16 +64,14 @@
6464
},
6565
"devDependencies": {
6666
"@sentry-internal/eslint-config": "5.3.0",
67-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.3.0",
6867
"@sentry/core": "8.30.0",
6968
"@sentry/types": "8.30.0",
7069
"@sentry/utils": "8.30.0",
7170
"@types/node": "^18.6.3",
7271
"eslint": "^8.18.0",
7372
"vitest": "^4.0.0",
7473
"premove": "^4.0.0",
75-
"rolldown": "^1.0.0",
76-
"typescript": "^4.7.4"
74+
"rolldown": "^1.0.0"
7775
},
7876
"volta": {
7977
"extends": "../../package.json"

0 commit comments

Comments
 (0)