build: declare workspace dependencies and check them in CI (P0.2)
Packages relied on npm hoisting for imports they never declared, so a package installed on its own fails (UF-024). - server: + @waggle/marketplace, @waggle/sdk, @waggle/weaver, zod (MIT), @anthropic-ai/sdk (MIT), @ax-llm/ax (Apache-2.0); - @waggle/hive-mind-shim-core and stripe (unused) - agent: + pdf-parse (Apache-2.0); playwright-core (Apache-2.0) as an optional peer, since it is loaded only when available - worker: + @waggle/waggle-dance; web: + @waggle/shared - launcher: + @waggle/server as a dev dependency (bundled by tsup); - stripe; cli: - @waggle/weaver (unused); root: - stripe scripts/check-workspace-deps.mjs (npm run check:deps) compares the imports in each community-edition package's src/ with its manifest and runs in CI. Two imports wait for P1.4 (optimizer, evolution wiring).
This commit is contained in:
@@ -155,7 +155,9 @@ npx tsc --noEmit --project packages/server/tsconfig.json # the sidecar runs vi
|
||||
npx tsc --noEmit --project app/tsconfig.json
|
||||
npm run test # root Vitest: packages, tests/, scripts/ (excludes apps/**)
|
||||
(cd apps/web && npx vitest run) # web UI tests use their own config
|
||||
npm run lint
|
||||
npm run lint # root config; ignores apps/web
|
||||
(cd apps/web && npx eslint .) # web config; 49 errors pre-exist (docs/oss/baseline.md)
|
||||
npm run check:deps # every imported package is declared in its package.json
|
||||
```
|
||||
|
||||
- Playwright e2e reuses any server already listening on :3333 and its data directory. For an
|
||||
|
||||
Reference in New Issue
Block a user