Files
create-better-t-stack/apps/cli/templates/frontend/react/next/tsconfig.json.hbs

52 lines
1.1 KiB
Handlebars

{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}{{#if (or (eq serverDeploy "alchemy") (eq webDeploy "alchemy"))}},
"types": [
"@cloudflare/workers-types"
]{{/if}}
},
"include": [
{{#if (eq serverDeploy "alchemy")}}
"../server/env.d.ts",
{{/if}}
{{#if (eq serverDeploy "wrangler")}}
"../server/worker-configuration.d.ts",
{{/if}}
"./next-env.d.ts",
"./**/*.ts",
"./**/*.tsx",
"./.next/types/**/*.ts"
],
"exclude": [
"./node_modules"
],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [
{
"path": "../server"
}
]
{{/unless}}
}