Skip to content

Commit 336931a

Browse files
committed
fix: exclude test files from TypeScript build
- Add include/exclude to tsconfig.json - Exclude tests/, vitest.config.ts, and test files from build - Fixes TS6059 errors about files not under rootDir
1 parent 49c668c commit 336931a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tsconfig.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,16 @@
2525
"types": [
2626
"node"
2727
]
28-
}
28+
},
29+
"include": [
30+
"src/**/*"
31+
],
32+
"exclude": [
33+
"node_modules",
34+
"dist",
35+
"tests",
36+
"**/*.test.ts",
37+
"**/*.spec.ts",
38+
"vitest.config.ts"
39+
]
2940
}

0 commit comments

Comments
 (0)