Skip to content

Commit a733171

Browse files
committed
Change tsconfig.json to the version npm build generates...
1 parent 200fe1d commit a733171

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

tsconfig.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"compilerOptions": {
3-
"lib": ["dom", "dom.iterable", "esnext"],
3+
"lib": [
4+
"dom",
5+
"dom.iterable",
6+
"esnext"
7+
],
48
"allowJs": true,
59
"skipLibCheck": true,
610
"strict": true,
@@ -10,7 +14,7 @@
1014
"moduleResolution": "bundler",
1115
"resolveJsonModule": true,
1216
"isolatedModules": true,
13-
"jsx": "preserve",
17+
"jsx": "react-jsx",
1418
"incremental": true,
1519
"target": "ES2023",
1620
"downlevelIteration": true,
@@ -20,9 +24,20 @@
2024
}
2125
],
2226
"paths": {
23-
"@/*": ["./*"]
27+
"@/*": [
28+
"./*"
29+
]
2430
}
2531
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27-
"exclude": ["node_modules", "jest.*.ts"]
32+
"include": [
33+
"next-env.d.ts",
34+
"**/*.ts",
35+
"**/*.tsx",
36+
".next/types/**/*.ts",
37+
".next/dev/types/**/*.ts"
38+
],
39+
"exclude": [
40+
"node_modules",
41+
"jest.*.ts"
42+
]
2843
}

0 commit comments

Comments
 (0)