mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
fix(api): unblock tsc by dropping rootDir and allowing .ts imports
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) <noreply@anthropic.com>
This commit is contained in:
parent
53fb3232f3
commit
eaf97aeebf
1 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue