From a08ebcaef8f99f929853485662855df07f13f3dc Mon Sep 17 00:00:00 2001 From: saltbo Date: Mon, 20 Apr 2026 16:30:16 -0400 Subject: [PATCH] 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> --- tsconfig.json | 4 ++-- tsconfig.server.json | 4 +--- tsconfig.web.json | 10 +--------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1a2f58b7..9664a242 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,8 @@ "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "isolatedModules": true, - "declaration": true, - "declarationMap": true, + "declaration": false, + "declarationMap": false, "sourceMap": true, "baseUrl": ".", "paths": { diff --git a/tsconfig.server.json b/tsconfig.server.json index 4ec86800..99ba561f 100644 --- a/tsconfig.server.json +++ b/tsconfig.server.json @@ -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"] diff --git a/tsconfig.web.json b/tsconfig.web.json index ddfb5c80..cab301ef 100644 --- a/tsconfig.web.json +++ b/tsconfig.web.json @@ -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"] }