This PR makes the "test" folder strict in typescript. `pnpm build:test` before: Found 3275 errors in 174 files. `pnpm build:test` after: Found 4912 errors in 268 files. At some point we should bring that number to 0 and make it a requirement in the CI. Currently `pnpm build:test` is not run anywhere in the CI. Additionally, I took the opportunity to combine the duplicate configurations from `tsconfig.json` and `tsconfig.typecheck.json` using "extend". declaration, declarationMap and sourceMap have been removed as they have no reason to exist in noEmit. The settings I left in `tsconfig.typecheck.json` are ones that I'm not sure why they are there. Perhaps the file could be removed or at least reduced further.
80 lines
1.5 KiB
JSON
80 lines
1.5 KiB
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"incremental": false
|
|
},
|
|
"exclude": ["dist", "build", "temp", "node_modules"],
|
|
"include": [
|
|
// "./test/_community/**/*.ts"
|
|
// "./_community/**/*.ts"
|
|
"/**/*.ts"
|
|
// "../packages/**/src/**/*.ts",
|
|
// "../packages/**/src/**/*.tsx"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../packages/create-payload-app"
|
|
},
|
|
{
|
|
"path": "../packages/db-mongodb"
|
|
},
|
|
{
|
|
"path": "../packages/db-postgres"
|
|
},
|
|
{
|
|
"path": "../packages/graphql"
|
|
},
|
|
{
|
|
"path": "../packages/live-preview"
|
|
},
|
|
{
|
|
"path": "../packages/live-preview-react"
|
|
},
|
|
{
|
|
"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-sentry"
|
|
},
|
|
{
|
|
"path": "../packages/plugin-seo"
|
|
},
|
|
{
|
|
"path": "../packages/plugin-stripe"
|
|
},
|
|
{
|
|
"path": "../packages/richtext-slate"
|
|
},
|
|
{
|
|
"path": "../packages/richtext-lexical"
|
|
},
|
|
{
|
|
"path": "../packages/translations"
|
|
},
|
|
{
|
|
"path": "../packages/ui"
|
|
}
|
|
]
|
|
}
|