{
  {{#if IS_MONOREPO}}
  "extends": "@repo/typescript-config/base.json",
  {{else}}
  "$schema": "https://json.schemastore.org/tsconfig",
  {{/if}}
  "compilerOptions": {
    {{#unless IS_MONOREPO}}
    "target": "ES2022",
    "module": "ESNext",
    "lib": ["ES2022"],
    "moduleResolution": "bundler",
    {{/unless}}
    "outDir": "./dist",
    "rootDir": "./src",
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    {{#unless IS_MONOREPO}}
    "allowSyntheticDefaultImports": true,
    {{/unless}}
    "resolveJsonModule": true,
    {{#if HAS_SUBPATH_EXPORTS}}
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"],
      {{#each SUBPATH_EXPORTS}}
      "{{../packageName}}/{{this}}": ["src/{{this}}/index.ts"],
      {{/each}}
    }
    {{else}}
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    }
    {{/if}}
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "dist",
    "**/*.test.ts",
    "**/*.spec.ts"
  ]
}