Skip to content

Commit f967c84

Browse files
committed
update next tsconfigs
1 parent 8fe2e84 commit f967c84

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

examples/nextjs-app/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
98
"noEmit": true,
109
"esModuleInterop": true,
1110
"module": "esnext",
@@ -23,6 +22,6 @@
2322
"@/*": ["./*"]
2423
}
2524
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.mts"],
2726
"exclude": ["node_modules"]
2827
}
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
98
"noEmit": true,
109
"esModuleInterop": true,
1110
"module": "esnext",
@@ -14,10 +13,15 @@
1413
"isolatedModules": true,
1514
"jsx": "preserve",
1615
"incremental": true,
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
1721
"paths": {
18-
"@/*": ["./src/*"]
22+
"@/*": ["./*"]
1923
}
2024
},
21-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.mts"],
2226
"exclude": ["node_modules"]
2327
}

templates/nextjs-app/tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
98
"noEmit": true,
109
"esModuleInterop": true,
1110
"module": "esnext",
12-
"moduleResolution": "node",
11+
"moduleResolution": "bundler",
1312
"resolveJsonModule": true,
1413
"isolatedModules": true,
1514
"jsx": "preserve",
@@ -23,6 +22,6 @@
2322
"@/*": ["./*"]
2423
}
2524
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.mts"],
2726
"exclude": ["node_modules"]
2827
}
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
98
"noEmit": true,
109
"esModuleInterop": true,
1110
"module": "esnext",
12-
"moduleResolution": "node",
11+
"moduleResolution": "bundler",
1312
"resolveJsonModule": true,
1413
"isolatedModules": true,
1514
"jsx": "preserve",
1615
"incremental": true,
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
1721
"paths": {
18-
"@/*": ["./src/*"]
22+
"@/*": ["./*"]
1923
}
2024
},
21-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.mts"],
2226
"exclude": ["node_modules"]
2327
}

0 commit comments

Comments
 (0)