Skip to content

Commit

Permalink
chore: ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Aug 9, 2024
1 parent 7d14690 commit f3206d7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
typescript: {
tsconfigPath: "./tsconfig.next.json",
},
};
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"incremental": true,
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react",
"esModuleInterop": true
},
"ts-node": {
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.next.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"jsx": "preserve"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

0 comments on commit f3206d7

Please sign in to comment.