Skip to content

Commit a12af56

Browse files
committed
fix: ts config and build
1 parent 6246c63 commit a12af56

File tree

2 files changed

+17
-51
lines changed

2 files changed

+17
-51
lines changed

src/tsconfig.json

+1-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
11
{
2-
"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,
17-
"plugins": [
18-
{
19-
"name": "next"
20-
}
21-
],
22-
"strictNullChecks": true,
23-
"paths": {
24-
"~/*": ["./*"]
25-
},
26-
"baseUrl": "."
27-
},
28-
"exclude": ["node_modules", "src/lib/apm", "src/server"],
29-
"include": [
30-
"next-env.d.ts",
31-
"**/*.ts",
32-
"**/*.tsx",
33-
"pages/node/id.test.js",
34-
".next/types/**/*.ts"
35-
]
2+
"extends": "../tsconfig.json"
363
}

tsconfig.json

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
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,
11+
"lib": ["dom", "dom.iterable", "es2019", "esNext"],
12+
"module": "esnext",
13+
"moduleResolution": "nodenext",
14+
"noEmit": true,
15+
"paths": {
16+
"~/*": ["./src/*"]
17+
},
1918
"plugins": [
2019
{
2120
"name": "next"
2221
}
2322
],
23+
"resolveJsonModule": true,
24+
"skipLibCheck": true,
25+
"strict": true,
2426
"strictNullChecks": true,
25-
"paths": {
26-
"~/*": ["./src/*"]
27-
},
28-
"baseUrl": "."
27+
"target": "ES2020"
2928
},
29+
"exclude": ["node_modules", "src/server"],
3030
"include": [
3131
"next-env.d.ts",
3232
"**/*.ts",
3333
"**/*.tsx",
3434
".next/types/**/*.ts",
3535
"./src/types/**/*.d.ts"
36-
],
37-
"exclude": ["node_modules", "**/*Legacy.ts", "**/*Legacy.tsx"]
36+
]
3837
}

0 commit comments

Comments
 (0)