fix(build): build *-primitive workspaces before core
Summary
A fresh npm run build (and typecheck) failed with TS2307: Cannot find module '@relayflows/github-primitive' (and slack/browser).
The core and cli packages resolve those deps from each primitive package's built dist/ types, but the root build script built core before the *-primitive workspaces — so on a clean checkout the primitives had no dist/ yet and tsc could not find their types.
Fix
Add a build:primitives script and run it first in both build and typecheck. Primitives are leaf packages (no inter-deps), so a single pre-pass is sufficient.
Verification
npm run buildfrom a clean state now completes (primitives → core → cli), alldist/present, exit 0.
🤖 Generated with Claude Code
Summary by cubic
Build the primitive workspaces before core to fix TS2307 module resolution errors on a clean checkout. Adds a build:primitives script and runs it first in build and typecheck so core/cli can resolve types from each primitive’s dist/.