chore: typecheck using monorepo (#4920)

This commit is contained in:
Alex Yang
2025-09-26 00:50:41 -07:00
committed by GitHub
parent 2b0013e38c
commit dad381b5ce
4 changed files with 25 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
"test": "turbo --filter \"./packages/*\" test",
"e2e:smoke": "turbo --filter \"./e2e/*\" e2e:smoke",
"e2e:integration": "turbo --filter \"./e2e/*\" e2e:integration",
"typecheck": "turbo --filter \"./packages/*\" typecheck"
"typecheck": "tsc -b --verbose --diagnostics"
},
"devDependencies": {
"@biomejs/biome": "2.2.4",

View File

@@ -0,0 +1,15 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "./node_modules/.cache/test",
"tsBuildInfoFile": "tsconfig.test.tsbuildinfo",
"lib": ["esnext", "dom", "dom.iterable"]
},
"references": [
{
"path": "../better-auth/tsconfig.json"
}
],
"include": ["test", "src"]
}

View File

@@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": ".",
"strict": true,
"target": "esnext",
"downlevelIteration": true,
@@ -17,7 +18,11 @@
"composite": true,
"incremental": true,
"noErrorTruncation": true,
"types": ["node"]
"types": ["node"],
"paths": {
"better-auth": ["./packages/better-auth/src"],
"better-auth/*": ["./packages/better-auth/src/*"]
}
},
"references": [
{
@@ -26,6 +31,9 @@
{
"path": "./packages/cli"
},
{
"path": "./packages/cli/tsconfig.test.json"
},
{
"path": "./packages/expo"
},

View File

@@ -37,10 +37,6 @@
"dependsOn": ["^build"],
"outputs": []
},
"typecheck": {
"outputs": [".tsbuildinfo", "dist/**"],
"cache": true
},
"deploy": {
"cache": false
},