build: one tsc -b build and a source export condition (P2.1)

- tsconfig.build.json references the nine in-scope packages; each package
  is composite and references the workspace packages it depends on.
  build:packages is now `tsc -b tsconfig.build.json` instead of a chain
  of cd commands.
- Every in-scope package exports its TypeScript entry under a `source`
  condition next to the dist/ entries. Vitest, tsx (dev:server, the
  Tauri dev launch, the e2e server), the sidecar and launcher bundles and
  the web app resolve it, so none of them needs build:packages first or
  can pick up a stale dist/. The vitest src aliases remain only for the
  excluded packages that have no source export.
- Published packages with a files list (agent, cli, marketplace) pack
  src/ too, so the source condition never points at a missing file.
- tsconfig.tests.json and `npm run typecheck:tests` type-check the test
  suites of the in-scope packages. They report 426 existing errors, so
  the CI step is advisory for now.
- The root test run leaves out the excluded and postponed packages
  (hive-mind-*, memory-mcp, wiki-compiler, team-server, waggle-dance,
  worker, weaver); they are not built either.
- CI runs the test job on Ubuntu, macOS and Windows with Node 22.23.2
  (ADR-0008), and no longer builds the hook runtime and the memory MCP
  server.
This commit is contained in:
shumeiko.it
2026-10-24 17:14:29 +02:00
parent bbfb3c7f82
commit 23431550ae
32 changed files with 205 additions and 103 deletions

View File

@@ -93,7 +93,7 @@ export default defineConfig({
* The server auto-detects <root>/dist per packages/server/src/local/
* index.ts — no WAGGLE_FRONTEND_DIR override needed. */
webServer: {
command: `npm run build:all && ${e2eNodeCommand} node_modules/tsx/dist/cli.mjs packages/server/src/local/start.ts${e2eSkipLiteLLM ? ' --skip-litellm' : ''}`,
command: `npm run build:all && ${e2eNodeCommand} node_modules/tsx/dist/cli.mjs --conditions=source packages/server/src/local/start.ts${e2eSkipLiteLLM ? ' --skip-litellm' : ''}`,
url: new URL('/health', e2eBaseURL).toString(),
reuseExistingServer: e2eReuseExistingServer,
timeout: 600_000, // Cold Windows build + scanning + tsx sidecar import can exceed 5 min