From eaf97aeebf69dddb65248d96e73bd865124973c5 Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 15 Apr 2026 18:51:26 +0200 Subject: [PATCH] fix(api): unblock tsc by dropping rootDir and allowing .ts imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running pnpm type-check inside apps/api failed before any real error could run, blocked by two structural errors: drizzle.presi.config.ts and scripts/generate-who-dossiers.ts are deliberately outside src/ but are matched by the include pattern, tripping TS6059 against rootDir=src. And @mana/shared-types imports peer files with explicit .ts extensions, which needs allowImportingTsExtensions under moduleResolution=bundler. Remove rootDir (we're noEmit anyway — Bun runs src/index.ts directly, tsc is only a lint pass), drop the unused outDir, add noEmit explicitly, and enable allowImportingTsExtensions. Type-check now completes cleanly. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/api/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json index f036200b3..19b38b3ef 100644 --- a/apps/api/tsconfig.json +++ b/apps/api/tsconfig.json @@ -6,8 +6,8 @@ "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "outDir": "dist", - "rootDir": "src", + "noEmit": true, + "allowImportingTsExtensions": true, "types": ["bun-types"] }, "include": ["src/**/*.ts", "scripts/**/*.ts", "drizzle.*.config.ts"]