{
  "compilerOptions": {
    "target": "es2020",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": false,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "incremental": true,
    "isolatedModules": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "jsx": "react-jsx",
    "baseUrl": ".",             // 👈 根路径基准
    "paths": {
      "contentlayer/generated": ["./.contentlayer/generated"],
      "@/*": ["src/*"],
      "@components/*": ["src/components/*"],
      "@i18n/*": ["src/i18n/*"],
      "@lib/*": ["src/lib/*"],
      "@types/*": ["types/*"],
      "@server/*": ["src/server/*"],
      "@modules/*": ["src/modules/*"],
      "@extensions/*": ["src/modules/extensions/*"],
      "@theme": ["src/components/theme"],
      "@theme/*": ["src/components/theme/*"],
      "@templates/*": ["src/modules/templates/*"],
      "@src/*": ["src/*"]
    },
    "types": ["node", "vitest/globals", "@testing-library/jest-dom"],
    "plugins": [{ "name": "next" }]
  },
  "include": [
    "next-env.d.ts",
    "src",
    "tests",
    "scripts",
    "types",
    ".next/types/**/*.ts",
    ".next/dev/types/**/*.ts"
  ],
  "exclude": ["node_modules"]
}
