mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:41:08 +02:00
shared-types/src/index.ts re-exports with explicit .ts extensions (Tailwind v4 module resolver needs them). TS 5.7 requires consumers to opt in via allowImportingTsExtensions. The flag only type-checks when noEmit:true; the NestJS builder also needs rewriteRelativeImportExtensions so tsc still emits valid JS. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23 lines
744 B
JSON
23 lines
744 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
// src/index.ts re-exports with explicit .ts extensions (needed so
|
|
// Tailwind's module resolver can follow the package out of its
|
|
// bundler when scanning branded components). noEmit:true means
|
|
// the rewrite flag isn't needed — this is the matching compiler
|
|
// opt-in that lets tsc see the .ts imports without erroring.
|
|
"allowImportingTsExtensions": true,
|
|
"lib": ["ES2022"],
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"isolatedModules": true,
|
|
"verbatimModuleSyntax": true,
|
|
"noEmit": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules"]
|
|
}
|