565a2fafac
Improve the Next.js with TypeScript + GraphQL example: - [x] use GraphQL Code Generator instead of `graphql-let`: more widespread tool and smaller bundle size (types only generation vs code generation) - [x] use GraphQL Yoga instead of Apollo Server Micro: for lighter bundle size as [stated here](https://github.com/vercel/next.js/pull/36155) - [x] introduces GraphQL Code Generator on the API side for Resolvers typing Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
21 lines
556 B
JSON
21 lines
556 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es5",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"baseUrl": ".",
|
|
"incremental": true
|
|
},
|
|
"include": ["next-env.d.ts", "graphql.d.ts", "**/*.ts", "**/*.tsx"],
|
|
"exclude": ["node_modules", ".cache"]
|
|
}
|