Files
streamyfin/tsconfig.json
Gauvino ca62afe039 fix(typecheck): adapt tsconfig and typecheck script to TypeScript 6
TS 6.0 changes the default of compilerOptions.types from "all packages
under node_modules/@types" to []. Globals from @types/node (Buffer,
NodeJS.*, process typed as never-returning on exit) and @types/jest
(it, expect) were no longer resolved, producing 20 typecheck errors.
Declare the two packages explicitly and add @types/node as a direct
devDependency (it was previously only hoisted transitively).

TS 6.0 also enables pretty diagnostics even when piped, which broke the
line-based error parser in scripts/typecheck.js; force --pretty false.
2026-06-11 14:53:18 +02:00

47 lines
1.0 KiB
JSON

{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "react",
"paths": {
"@/*": ["./*"]
},
// TS 6.0: "types" now defaults to [] (no auto-inclusion of node_modules/@types)
"types": ["node", "jest"],
"incremental": true,
"tsBuildInfoFile": ".tsbuildinfo",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": [
"app/**/*",
"assets/**/*",
"components/**/*",
"constants/**/*",
"hooks/**/*",
"modules/**/*",
"packages/**/*",
"plugins/**/*",
"providers/**/*",
"scripts/**/*",
"translations/**/*",
"*.ts",
"*.tsx",
".expo/types/**/*.ts",
"expo-env.d.ts"
],
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"utils/jellyseerr/**/*"
]
}