07 · Development
Build and test
Useful root commands for validating changes to MessageX packages.
Run commands from the repository root unless otherwise noted.
Broker
npm run build:broker
npm run test:brokerThe broker workspace also provides a TypeScript type-check command:
npm run typecheck --workspace=@messagex/brokerJavaScript SDK
npm run build:sdk
npm run test:sdkDashboard
npm run build:dashboardThe dashboard is a Vite application.
Documentation site
The docs app has an independent dependency graph:
cd docs/site
npm install
npm run typecheck
npm run buildIf npm run build fails, fix the reported MDX or TypeScript errors before merging. Do not change the root broker or dashboard lockfile to resolve a docs-only dependency issue.
Suggested validation sequence
- Run the test suite for the package changed.
- Run its production build.
- Review
git diffandgit status. - Confirm no
.env, database data,node_modules,.next, or.sourcefiles are included. - Push the feature branch and inspect the Pull Request checks.