Files
payloadcms/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

82 lines
1.4 KiB
JSON

{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"composite": false,
"noEmit": true,
"baseUrl": ".",
},
"references": [
{
"path": "./packages/create-payload-app"
},
{
"path": "./packages/db-mongodb"
},
{
"path": "./packages/db-postgres"
},
{
"path": "./packages/drizzle"
},
{
"path": "./packages/graphql"
},
{
"path": "./packages/live-preview"
},
{
"path": "./packages/live-preview-react"
},
{
"path": "./packages/live-preview-vue"
},
{
"path": "./packages/next"
},
{
"path": "./packages/payload"
},
{
"path": "./packages/plugin-cloud-storage"
},
{
"path": "./packages/payload-cloud"
},
{
"path": "./packages/plugin-form-builder"
},
{
"path": "./packages/plugin-nested-docs"
},
{
"path": "./packages/plugin-redirects"
},
{
"path": "./packages/plugin-search"
},
{
"path": "./packages/plugin-seo"
},
{
"path": "./packages/plugin-stripe"
},
{
"path": "./packages/richtext-slate"
},
{
"path": "./packages/richtext-lexical"
},
{
"path": "./packages/translations"
},
{
"path": "./packages/ui"
}
],
"include": [
"${configDir}/src",
".next/types/**/*.ts"
]
}