mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 16:09:40 +02:00
The prior dance (93bb94a12drop .ts,bb278fb3cswitch to .js) kept breaking one consumer or the other: - bare specifiers (no extension) satisfied svelte-check but broke the Node ESM loader invoked via @tailwindcss/node during SSR — SSR of every (app) route 500'd with ERR_MODULE_NOT_FOUND on 'theme'. - .js extensions satisfied svelte-check and Vite but still broke the Tailwind loader, because the files on disk are .ts — Node ESM walks the actual filesystem and can't rewrite .js → .ts the way tsc does at type-check time. Flip the web app's tsconfig to "allowImportingTsExtensions": true and put the .ts extensions back. tsc now accepts the imports, and Node's loader finds the real file on disk. No build step, no emit, and the shared-types package stays a pure source-only TS workspace. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
375 B
JSON
16 lines
375 B
JSON
{
|
|
"extends": "./.svelte-kit/tsconfig.json",
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true
|
|
}
|
|
}
|