mirror of
https://github.com/hanzoai/zod.git
synced 2026-09-24 17:04:49 +00:00
TypeScript 6.0 marks `baseUrl` as deprecated, which Vitest's typecheck
turns into a hard CI failure. The docs `paths` already use relative
`./` notation, so removing `baseUrl` is a no-op for resolution.
The landmine sat dormant until commit 29695716 added the first
`*.test.ts` under `packages/docs/`, which caused Vitest to actually
load the docs `tsconfig.test.json` for typechecking on every run.
31 lines
793 B
JSON
31 lines
793 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"incremental": true,
|
|
"paths": {
|
|
"@/.source": ["./.source/index.ts"],
|
|
"@/*": ["./*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"types": ["mdx", "node", "react", "react-dom", "@vercel/og"]
|
|
},
|
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "components/if.tsx", "types/**/*.d.ts"],
|
|
"exclude": ["node_modules"]
|
|
}
|