chore: cleanup 2.0 tsconfigs, fix building types for db adapters (#3293)

* 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
This commit is contained in:
Alessio Gravili
2023-09-07 22:36:17 +02:00
committed by GitHub
parent abd983f421
commit 4aad563f58
11 changed files with 84 additions and 138 deletions

View File

@@ -61,7 +61,7 @@ module.exports = {
},
],
parserOptions: {
project: ['../tsconfig.json'],
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
root: true,

19
test/tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": false /* Do not emit outputs. */,
"emitDeclarationOnly": true,
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
"rootDir": "../" /* Specify the root folder within your source files. */
},
"exclude": ["dist", "build", "node_modules", ".eslintrc.js"],
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.d.ts",
"src/**/*.json",
"**/*.ts",
"test/**/*.tsx",
"../packages/**/src/**/*.ts"
]
}