Move and re-export all PDF parsing and TTS-related types from @openreader/compute-core/types, eliminating local type duplication. Update imports throughout the codebase to use the new centralized type module. Remove obsolete worker-contract file and update tsconfig paths and compute-core exports for the new types entry point. Refactor API routes and job logic to use the new type imports and shared parse-state healing utility. This streamlines type management and improves consistency between compute and app layers.
36 lines
929 B
JSON
36 lines
929 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@openreader/compute-core": ["./compute/core/src/index.ts"],
|
|
"@openreader/compute-core/local-runtime": ["./compute/core/src/local-runtime.ts"],
|
|
"@openreader/compute-core/types": ["./compute/core/src/types/index.ts"]
|
|
}
|
|
},
|
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
"exclude": [
|
|
"node_modules",
|
|
"docs-site",
|
|
"docs-site/**",
|
|
"compute/worker",
|
|
"compute/worker/**"
|
|
]
|
|
}
|