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)
108 lines
2.8 KiB
JSON
108 lines
2.8 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"target": "ES2022",
|
|
"rootDir": "${configDir}/src",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"jsx": "preserve",
|
|
"lib": [
|
|
"DOM",
|
|
"DOM.Iterable",
|
|
"ES2022"
|
|
],
|
|
"outDir": "${configDir}/dist",
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"emitDeclarationOnly": true,
|
|
"sourceMap": true,
|
|
"types": [
|
|
"jest",
|
|
"node",
|
|
"@types/jest"
|
|
],
|
|
"incremental": true,
|
|
"isolatedModules": true,
|
|
"strict": false,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@payload-config": [
|
|
"./test/_community/config.ts"
|
|
],
|
|
"@payloadcms/live-preview": [
|
|
"./packages/live-preview/src"
|
|
],
|
|
"@payloadcms/live-preview-react": [
|
|
"./packages/live-preview-react/src/index.ts"
|
|
],
|
|
"@payloadcms/live-preview-vue": [
|
|
"./packages/live-preview-vue/src/index.ts"
|
|
],
|
|
"@payloadcms/ui": [
|
|
"./packages/ui/src/exports/client/index.ts"
|
|
],
|
|
"@payloadcms/ui/shared": [
|
|
"./packages/ui/src/exports/shared/index.ts"
|
|
],
|
|
"@payloadcms/ui/scss": [
|
|
"./packages/ui/src/scss.scss"
|
|
],
|
|
"@payloadcms/ui/scss/app.scss": [
|
|
"./packages/ui/src/scss/app.scss"
|
|
],
|
|
"@payloadcms/next/*": [
|
|
"./packages/next/src/exports/*.ts"
|
|
],
|
|
"@payloadcms/richtext-lexical/client": [
|
|
"./packages/richtext-lexical/src/exports/client/index.ts"
|
|
],
|
|
"@payloadcms/richtext-lexical/rsc": [
|
|
"./packages/richtext-lexical/src/exports/server/rsc.ts"
|
|
],
|
|
"@payloadcms/richtext-slate/rsc": [
|
|
"./packages/richtext-slate/src/exports/server/rsc.ts"
|
|
],
|
|
"@payloadcms/richtext-slate/client": [
|
|
"./packages/richtext-slate/src/exports/client/index.ts"
|
|
],
|
|
"@payloadcms/plugin-seo/client": [
|
|
"./packages/plugin-seo/src/exports/client.ts"
|
|
],
|
|
"@payloadcms/plugin-sentry/client": [
|
|
"./packages/plugin-sentry/src/exports/client.ts"
|
|
],
|
|
"@payloadcms/plugin-stripe/client": [
|
|
"./packages/plugin-stripe/src/exports/client.ts"
|
|
],
|
|
"@payloadcms/plugin-search/client": [
|
|
"./packages/plugin-search/src/exports/client.ts"
|
|
],
|
|
"@payloadcms/plugin-form-builder/client": [
|
|
"./packages/plugin-form-builder/src/exports/client.ts"
|
|
],
|
|
"@payloadcms/next": [
|
|
"./packages/next/src/exports/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"${configDir}/src"
|
|
],
|
|
"exclude": [
|
|
"${configDir}/dist",
|
|
"${configDir}/build",
|
|
"${configDir}/temp",
|
|
"**/*.spec.ts"
|
|
]
|
|
}
|