mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
Test files use .ts extensions in imports for Node's native test runner compatibility, which conflicts with TypeScript's default behavior. Excluding test files from tsconfig allows tests to run with Node while maintaining strict type checking for the main codebase. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
43 lines
892 B
JSON
43 lines
892 B
JSON
{
|
|
"compilerOptions": {
|
|
/* Base Options: */
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"target": "es2022",
|
|
"allowJs": true,
|
|
"resolveJsonModule": true,
|
|
"moduleDetection": "force",
|
|
"isolatedModules": true,
|
|
"verbatimModuleSyntax": true,
|
|
|
|
/* Strictness */
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"checkJs": true,
|
|
|
|
/* Bundled projects */
|
|
"lib": ["dom", "dom.iterable", "ES2022"],
|
|
"noEmit": true,
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"jsx": "preserve",
|
|
"plugins": [{ "name": "next" }],
|
|
"incremental": true,
|
|
|
|
/* Path Aliases */
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"~/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"**/*.cjs",
|
|
"**/*.js",
|
|
".next/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", "tests/**/*.test.ts"]
|
|
}
|