{ "compilerOptions": { "declaration": true /* Generates corresponding '.d.ts' file. */, "declarationMap": true, // This will allow code navigation between projects. "target": "ESNext", "module": "Node16", "moduleResolution": "Node16" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, /* Do not emit comments to output. */ "allowJs": true /* Allow javascript files to be compiled. */, "checkJs": false /* Report errors in .js files. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, "jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, "lib": ["dom", "dom.iterable", "esnext"], "noEmit": true /* Do not emit outputs. */, /* Concatenate and emit output to single file. */ "outDir": "./dist" /* Redirect output structure to the directory. */, "resolveJsonModule": true, "rootDir": "." /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, "skipLibCheck": true /* Skip type checking of declaration files. */, "sourceMap": true, "strict": false /* Enable all strict type-checking options. */, "types": ["jest", "node", "@types/jest"], "incremental": true, "isolatedModules": true, "plugins": [ { "name": "next" } ], "paths": { "payload": ["./packages/payload/src"], "payload/*": ["./packages/payload/src/exports/*"], "@payloadcms/db-mongodb": ["./packages/db-mongodb/src"], "@payloadcms/richtext-lexical": ["./packages/richtext-lexical/src"], "@payloadcms/ui/*": ["./packages/ui/src/exports/*"], "@payloadcms/ui/scss": ["./packages/ui/src/scss/styles.scss"], "@payloadcms/ui/scss/app.scss": ["./packages/ui/src/scss/app.scss"], "@payloadcms/translations": ["./packages/translations/src/exports/index.ts"], "@payloadcms/translations/client": ["./packages/translations/dist/client/index.js"], "@payloadcms/translations/api": ["./packages/translations/dist/api/index.js"], "@payloadcms/translations/all": ["./packages/translations/dist/all/index.js"], "@payloadcms/next/*": ["./packages/next/src/*"], "@payloadcms/graphql": ["./packages/graphql/src"] } }, "exclude": ["dist", "build", "temp", "node_modules"], /* Like tsconfig.build.json, but includes test directory and doesnt emit anything */ "composite": true, // Required for references to work "references": [ // if your tsconfig is something different { "path": "./packages/db-mongodb" }, { "path": "./packages/db-postgres" }, { "path": "./packages/graphql" }, { "path": "./packages/live-preview" }, { "path": "./packages/live-preview-react" }, { "path": "./packages/next" }, { "path": "./packages/payload" }, { "path": "./packages/plugin-cloud-storage" }, { "path": "./packages/plugin-cloud" }, { "path": "./packages/plugin-form-builder" }, { "path": "./packages/plugin-nested-docs" }, { "path": "./packages/plugin-redirects" }, { "path": "./packages/plugin-search" }, { "path": "./packages/plugin-seo" }, { "path": "./packages/plugin-stripe" }, { "path": "./packages/richtext-slate" }, { "path": "./packages/richtext-lexical" }, { "path": "./packages/translations" }, { "path": "./packages/ui" } ], "include": ["next-env.d.ts", ".next/types/**/*.ts", "app/**/*.ts", "app/**/*.tsx"] }