Before Push Check
Run pnpm b4push from the project root. This executes scripts/run-b4push.sh which runs all checks in order:
- •Code quality (root) - Prettier + ESLint
- •TypeScript build - Compile to dist/
- •Unit tests - Vitest suite (232 tests)
- •Doc data generation - doc-titles.json + category-nav.json
- •Doc quality checks - TypeScript + ESLint + Prettier
- •Doc site build - Full Docusaurus production build
Takes ~40 seconds. All 6 steps must pass.
On failure
- •Read the failure output to identify which step failed
- •Auto-fix what you can:
- •Formatting:
pnpm check:fix(root) orcd doc && pnpm check:fix(doc) - •Lint:
pnpm lint:fix(root) orcd doc && pnpm lint:fix(doc)
- •Formatting:
- •Re-run
pnpm b4pushto confirm all checks pass - •Report the final status