Skip to content

Commit 0e3fe63

Browse files
committed
fix: ts config and build
1 parent 1c97541 commit 0e3fe63

File tree

2 files changed

+22
-50
lines changed

2 files changed

+22
-50
lines changed

src/tsconfig.json

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,19 @@
11
{
2+
"extends": "../tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": false,
6-
"skipLibCheck": true,
7-
"strict": false,
8-
"forceConsistentCasingInFileNames": true,
9-
"noEmit": true,
10-
"esModuleInterop": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"jsx": "preserve",
16-
"incremental": true,
4+
"strictNullChecks": true,
175
"plugins": [
186
{
197
"name": "next"
208
}
21-
],
22-
"strictNullChecks": true,
23-
"paths": {
24-
"~/*": ["./*"]
25-
},
26-
"baseUrl": "."
9+
]
2710
},
28-
"exclude": ["node_modules", "src/lib/apm", "src/server"],
11+
"exclude": ["../node_modules", "server"],
2912
"include": [
30-
"next-env.d.ts",
3113
"**/*.ts",
3214
"**/*.tsx",
33-
"pages/node/id.test.js",
34-
".next/types/**/*.ts"
15+
"next-env.d.ts",
16+
".next/types/**/*.ts",
17+
"./src/types/**/*.d.ts"
3518
]
3619
}

tsconfig.json

+15-26
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
11
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
32
"compilerOptions": {
4-
"target": "ES2020",
53
"allowJs": true,
6-
"skipLibCheck": true,
7-
"strict": false,
4+
"baseUrl": ".",
5+
"downlevelIteration": true,
6+
"esModuleInterop": true,
87
"forceConsistentCasingInFileNames": true,
9-
"noEmit": true,
108
"incremental": true,
11-
"esModuleInterop": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
14-
"resolveJsonModule": true,
159
"isolatedModules": true,
1610
"jsx": "preserve",
17-
"lib": ["DOM", "dom.iterable", "es2019", "esNext"],
18-
"downlevelIteration": true,
19-
"plugins": [
20-
{
21-
"name": "next"
22-
}
23-
],
24-
"strictNullChecks": true,
11+
"lib": ["dom", "dom.iterable", "es2019", "esNext"],
12+
"module": "esnext",
13+
"moduleResolution": "nodenext",
14+
"noEmit": true,
2515
"paths": {
2616
"~/*": ["./src/*"]
2717
},
28-
"baseUrl": "."
18+
"plugins": [],
19+
"resolveJsonModule": true,
20+
"skipLibCheck": true,
21+
"strict": true,
22+
"strictNullChecks": true,
23+
"target": "ES2020"
2924
},
30-
"include": [
31-
"next-env.d.ts",
32-
"**/*.ts",
33-
"**/*.tsx",
34-
".next/types/**/*.ts",
35-
"./src/types/**/*.d.ts"
36-
],
37-
"exclude": ["node_modules", "**/*Legacy.ts", "**/*Legacy.tsx"]
25+
"exclude": ["node_modules"],
26+
"include": ["**/*.ts", "**/*.tsx"]
3827
}

0 commit comments

Comments
 (0)