- packages/types/: shared type definitions (agent, project, btmsg, bttask, health, settings, protocol, backend interface) - BackendAdapter: capability-flagged interface, compile-time selected - TauriAdapter: wraps Tauri invoke/listen - ElectrobunAdapter: wraps Electrobun RPC - src/lib/backend/backend.ts: adapter singleton + setBackendForTesting() - pnpm-workspace.yaml: workspace setup
25 lines
819 B
JSON
25 lines
819 B
JSON
{
|
|
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"types": ["svelte", "vite/client"],
|
|
"noEmit": true,
|
|
/**
|
|
* Typecheck JS in `.svelte` and `.js` files by default.
|
|
* Disable checkJs if you'd like to use dynamic types in JS.
|
|
* Note that setting allowJs false does not prevent the use
|
|
* of JS in `.svelte` files.
|
|
*/
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"moduleDetection": "force",
|
|
"paths": {
|
|
"@agor/types": ["./packages/types/index.ts"],
|
|
"@agor/types/*": ["./packages/types/*.ts"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte", "packages/types/**/*.ts"]
|
|
}
|