Add a separate tsconfig for excluding tests/mocks from builds, while leaving them for type checks

This commit is contained in:
2025-11-20 16:52:56 -08:00
parent a9db9b5d5c
commit 22322e5f0a
3 changed files with 18 additions and 3 deletions

15
tsconfig.build.json Normal file
View File

@@ -0,0 +1,15 @@
// For builds, excludes tests and mocks
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"outDir": "dist",
"sourceMap": true
},
"include": ["src"],
"exclude": ["**/__tests__/*/**", "**/__mocks__/*/**"]
}