mirror of
https://github.com/anomalyco/opentui.git
synced 2026-09-19 01:26:03 +08:00
6d5d25afda
Prevent regressions where extensionless imports break consumers using NodeNext or Node's ESM loader. tsconfigs override back to "bundler" because bun-ffi-structs and bun-webgpu don't export NodeNext-compatible types yet. Change this once @kommander fixes upstream. I think we can merge this pr now and update the last things once you've updated upstream. Close: #843
28 lines
653 B
JSON
28 lines
653 B
JSON
{
|
|
"compilerOptions": {
|
|
// Enable latest features
|
|
"lib": ["ESNext", "DOM"],
|
|
"target": "ESNext",
|
|
"module": "NodeNext",
|
|
"moduleDetection": "force",
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "@opentui/react",
|
|
"allowJs": true,
|
|
|
|
// NodeNext module resolution
|
|
"moduleResolution": "NodeNext",
|
|
"verbatimModuleSyntax": true,
|
|
"noEmit": true,
|
|
|
|
// Best practices
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
// Some stricter flags (disabled by default)
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noPropertyAccessFromIndexSignature": false
|
|
}
|
|
}
|