49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"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": {
|
|
"@/*": ["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/*"],
|
|
"@internal/neurapress": ["../packages/neurapress/src/index.ts"],
|
|
"@internal/neurapress/*": ["../packages/neurapress/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"]
|
|
}
|