mirror of
https://github.com/zenlm/models.git
synced 2026-10-30 14:59:18 +00:00
typescript 7.0.2 is the native compiler and exports no JavaScript API, so tsup's dts build cannot read it. It comes in aliased as tsgo and does the typechecking; typescript stays on the 6 line for the tools. 0 diagnostics before and after. tsup injects its own baseUrl into the compilerOptions it hands the dts build, which typescript 6 errors on (TS5101), so the dts build needs ignoreDeprecations: "6.0" in the tsconfig. Without it `build` fails. Co-authored-by: Hanzo Dev <[email protected]>
16 lines
334 B
JSON
16 lines
334 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"declaration": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"outDir": "dist",
|
|
"ignoreDeprecations": "6.0"
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|