* chore: cleanup tsconfigs and fix db-mongodb builds * chore: make the db adapters depend on payload * chore: fix tsconfig for test directory * chore: fix packages/db-mongodb not building
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"extends": "../../tsconfig.json",
|
|
"compilerOptions": {
|
|
"composite": true, // Required for packages/db-mongodb to build
|
|
"noEmit": false /* Do not emit outputs. */,
|
|
"emitDeclarationOnly": true,
|
|
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
|
"outDir": "./dist" /* Redirect output structure to the directory. */,
|
|
"paths": {
|
|
"payload/auth": ["./src/auth/types.ts"],
|
|
"payload/config": ["./src/config/types.ts"],
|
|
"payload/generated-types": ["./src/generated-types.ts"],
|
|
"payload/types": ["./src/types/index.ts"]
|
|
},
|
|
"types": ["jest", "node", "@types/jest"],
|
|
"lib": ["dom", "dom.iterable", "esnext"]
|
|
},
|
|
"exclude": [
|
|
"dist",
|
|
"build",
|
|
"tests",
|
|
"test",
|
|
"node_modules",
|
|
".eslintrc.js",
|
|
"src/**/*.spec.js",
|
|
"src/**/*.spec.jsx",
|
|
"src/**/*.spec.ts",
|
|
"src/**/*.spec.tsx",
|
|
"temp"
|
|
],
|
|
/* Like tsconfig.build.json, but includes test directory and doesnt emit anything */
|
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
|
"ts-node": {
|
|
"swc": true
|
|
}
|
|
}
|