mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
tsx applies tsconfig.json compilerOptions only to the files its include/exclude match. The "packages" exclude (#12028) left packages/ui-kit/src out, so node --test compiled kit components with the classic JSX runtime and every node-runner test that renders a kit-backed adapter (Card) threw "React is not defined": noauth-banner-requirement (3), noauth-pause-visibility (4), ui/caveman-output-mode-preview (1), ui/dnd-context-ssr-ids (1). Only packages/browser-pool stays excluded. The kit is app code already type-checked through the @omniroute/ui-kit paths; next build ignores type errors and check:build-scope still skips the packages/ tree.
72 lines
1.6 KiB
JSON
72 lines
1.6 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@omniroute/open-sse": ["./open-sse"],
|
|
"@omniroute/open-sse/*": ["./open-sse/*"],
|
|
"@omniroute/browser-pool": ["./packages/browser-pool/src"],
|
|
"@omniroute/ui-kit": ["./packages/ui-kit/src"],
|
|
"@omniroute/ui-kit/*": ["./packages/ui-kit/src/*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"**/*.js",
|
|
"**/*.jsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts",
|
|
".next/dev/dev/types/**/*.ts",
|
|
".next-playwright/types/**/*.ts",
|
|
".next-playwright/dev/types/**/*.ts",
|
|
".build/next/types/**/*.ts",
|
|
".build/next/dev/types/**/*.ts",
|
|
".build/next/dev/dev/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"electron/node_modules",
|
|
"electron/dist-electron",
|
|
".build",
|
|
"open-sse",
|
|
"dist",
|
|
"coverage",
|
|
".source",
|
|
".tmp",
|
|
".claude",
|
|
".worktrees",
|
|
"@omniroute",
|
|
"_tasks",
|
|
"_ideia",
|
|
"_mono_repo",
|
|
"_references",
|
|
".opencode",
|
|
".scratch",
|
|
".agents",
|
|
".slim",
|
|
"packages/browser-pool"
|
|
]
|
|
}
|