From 919a295c2ec2a7a5b74d77f1b2c0e220ca33a81a Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 25 Jul 2024 12:16:43 -0500 Subject: [PATCH] Borrow config from create-next-app --- package.json | 2 +- tsconfig.json | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 640ad8b..43e7a98 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,6 @@ "devDependencies": { "@types/node": "17.0.4", "@types/react": "17.0.38", - "typescript": "4.5.4" + "typescript": "^5" } } diff --git a/tsconfig.json b/tsconfig.json index 481c16e..7b28589 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,26 @@ { "compilerOptions": { - "target": "es2015", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, - "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, - "module": "es2015", - "moduleResolution": "node", + "module": "esnext", + "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "incremental": true + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] }