diff --git a/apps/frontend-v3/tsconfig.json b/apps/frontend-v3/tsconfig.json index e25f90cb..14f119da 100644 --- a/apps/frontend-v3/tsconfig.json +++ b/apps/frontend-v3/tsconfig.json @@ -9,5 +9,13 @@ } ], "types": ["vitest/globals"] - } + }, + "include": [ + "**/*.ts", + "**/*.tsx", + "../../packages/lib/global.d.ts", + "next-env.d.ts", + ".next/types/**/*.ts" + ], + "exclude": ["node_modules", ".next"] } diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json index 1a15a02a..27d76983 100644 --- a/packages/lib/tsconfig.json +++ b/packages/lib/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "@repo/typescript-config/nextjs.json", + "extends": "@repo/typescript-config/react-library.json", "compilerOptions": { "module": "esnext", "types": ["vitest/globals"] }, - "include": ["**/*.ts", "**/*.tsx"], + "include": ["**/*.ts", "**/*.tsx", "global.d.ts"], "exclude": ["node_modules"] } diff --git a/packages/typescript-config/nextjs.json b/packages/typescript-config/nextjs.json index 80528de3..8f3f391d 100644 --- a/packages/typescript-config/nextjs.json +++ b/packages/typescript-config/nextjs.json @@ -11,13 +11,5 @@ "allowJs": true, "jsx": "preserve", "noEmit": true - }, - "include": [ - "**/*.ts", - "**/*.tsx", - "../lib/global.d.ts", - "next-env.d.ts", - ".next/types/**/*.ts" - ], - "exclude": ["node_modules", ".next"] + } }