{ "extends": "../tsconfig/base.json", "compilerOptions": { "types": ["node", "vitest/globals"], "target": "es2022", // es2023 lib for Array.prototype.toReversed (used by the service adapters) "lib": ["es2023", "dom", "dom.iterable"], // module es2022 so dynamic import() typechecks (build is done by tsdown, // which does not read this setting) "module": "es2022", "useDefineForClassFields": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, "strict": false, "resolveJsonModule": true, // @remix-run/node-fetch-server is exports-map only; the base config's // moduleResolution "node" (node10) cannot find its types without this hint. "paths": { "@remix-run/node-fetch-server": [ "./node_modules/@remix-run/node-fetch-server/dist/index.d.ts" ] } }, "include": [ "./src/**/*.ts", "./src/**/*.test.ts", "./src/**/__tests__/*", "./tests/**/*.ts" ], "exclude": ["dist", "build", "node_modules"], // ts-node runs scripts/generate-gql-schema.ts (extensionless CJS-style // imports); without this override it picks up module es2022 above and // executes the script as ESM, which fails to resolve those imports. "ts-node": { "compilerOptions": { "module": "commonjs" } } }