tsconfig.client.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. // Client-side typecheck aggregate: packages/client tests (.ts and .tsx).
  3. // Split from the host aggregate because both sides merge cordis Context
  4. // under the same keys (sessions, loader) with different services; shared
  5. // leaves (session/llm/tools/apiproxy/...) build once and are referenced by
  6. // both programs through each client package's own references.
  7. "extends": "./tsconfig.base.client.json",
  8. "compilerOptions": {
  9. "noEmit": true,
  10. "rewriteRelativeImportExtensions": false,
  11. // Tests execute under vitest on node (e2e files spawn processes); browser
  12. // purity of package src is each package's own tsconfig plus
  13. // scripts/client-bundle-purity.spec.ts.
  14. "types": ["node"]
  15. },
  16. "include": [
  17. // Source-subpath test imports can arrive through workspace links whose
  18. // realpath semantics vary by host. Load package CSS declarations directly.
  19. "packages/client/*/src/css-modules.d.ts",
  20. "packages/client/*/tests/**/*.ts",
  21. "packages/client/*/tests/**/*.tsx",
  22. "packages/client/tsdown.client.ts",
  23. "scripts/client-bundle-purity.spec.ts"
  24. ],
  25. "references": [
  26. // Shared leaf: web e2e boots the real host webserver (fixture + real-host
  27. // smoke policy). webserver has zero workspace deps and no cordis merge,
  28. // so it cannot drag host-side Context augmentation into this program.
  29. { "path": "./packages/host/webserver" },
  30. { "path": "./packages/client/ui-slots" },
  31. { "path": "./packages/client/ui-primitives" },
  32. { "path": "./packages/client/web-react" },
  33. { "path": "./packages/client/modules" },
  34. { "path": "./packages/client/hmr" },
  35. { "path": "./packages/client/connection" },
  36. { "path": "./packages/client/runtime" },
  37. { "path": "./packages/client/ui-layout" },
  38. { "path": "./packages/client/ui-sidebar" },
  39. { "path": "./packages/client/ui-conversation" },
  40. { "path": "./packages/client/ui-workspace" },
  41. { "path": "./packages/client/ui-slash" },
  42. { "path": "./packages/client/ui-command" },
  43. { "path": "./packages/client/ui-skill" },
  44. { "path": "./packages/client/ui-subagent" },
  45. { "path": "./packages/client/ui-model" },
  46. { "path": "./packages/client/ui-question" },
  47. { "path": "./packages/client/ui-trajectory" },
  48. { "path": "./packages/client/ui-theme" },
  49. { "path": "./packages/client/ui-settings" },
  50. { "path": "./packages/client/ui-settings-general" },
  51. { "path": "./packages/client/ui-models" },
  52. { "path": "./packages/client/locale" },
  53. { "path": "./packages/client/web" },
  54. { "path": "./apps/web" }
  55. ]
  56. }