mirror of
https://github.com/saltbo/zpan.git
synced 2026-10-30 18:31:36 +08:00
refactor(config): consolidate tsconfig path aliases and remove redundancy
- Move declaration/declarationMap: false to root (was duplicated in both child configs) - Remove duplicate baseUrl/paths from tsconfig.web.json (now inherited from root) - tsconfig.web.json and tsconfig.server.json now only declare their own unique options (jsx and types respectively) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["@cloudflare/workers-types"],
|
||||
"declaration": false,
|
||||
"declarationMap": false
|
||||
"types": ["@cloudflare/workers-types"]
|
||||
},
|
||||
"include": ["server", "shared", "workers"],
|
||||
"exclude": ["server/**/*.cf-test.ts", "workers/**/*.cf-test.ts", "server/test/apply-migrations.ts"]
|
||||
|
||||
+1
-9
@@ -1,15 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"],
|
||||
"@shared/*": ["./shared/*"],
|
||||
"@server/*": ["./server/*"]
|
||||
}
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": ["src", "shared"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user