Files
payload/test/tsconfig.json
Alessio Gravili f5c13deb24 build: fix tsconfig monorepo setup (#10028)
Should fix messed up import suggestions and simplifies all tsconfigs
through inheritance.

One main issue was that packages were inheriting `baseURL: "."` from the
root tsconfig. This caused incorrect import suggestions that start with
"packages/...".

This PR ensures that packages do not inherit this baseURL: "." property,
while ensuring the root, non-inherited tsconfig still keeps it to get
tests to work (the importMap needs it)
2024-12-17 14:49:29 -05:00

60 lines
1.1 KiB
JSON

{
"compilerOptions": {
"noEmit": true,
"rootDir": ".",
"declaration": true,
"declarationMap": true,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"allowJs": true,
"checkJs": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"lib": [
"DOM",
"DOM.Iterable",
"ES2022"
],
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": false,
"types": [
"jest",
"node",
"@types/jest"
],
"incremental": true,
"isolatedModules": true,
"plugins": [
{
"name": "next"
}
],
"baseUrl": ".",
"paths": {
"@payload-config": [
"./_community/config.ts"
]
}
},
"exclude": [
"dist",
"build",
"node_modules",
"eslint.config.js",
"dist/**/*.js",
"**/dist/**/*.js"
],
"include": [
"./**/*.ts",
"./**/*.tsx",
"next-env.d.ts",
".next/types/**/*.ts",
"setup.js"
],
"references": []
}