This guide is for developers contributing to this repository.
- Use Bun 1.4.3 and Node.js 22.22.1.
- Install dependencies:
bun install- For runtime checks, prepare
.envas described in quick-start.md.
Run the CLI locally:
bun run devUse your local input directory and Algolia credentials through environment variables.
- Build:
bun run build- Lint:
bun run lint- Lint with autofix:
bun run lint:fix- Unit tests:
bun run test- Add or update tests for every behavior change.
- Keep tests deterministic and isolated.
- Run
bun run testbefore pushing. - Pre-push hook also runs tests. Do not bypass failures.
- Follow commit and branch rules in git-workflow.md.
- Follow the pull request structure in .github/PULL_REQUEST_TEMPLATE.md.
- Update related documentation when behavior or usage changes.
- Project structure and ownership: repository-map.md
- Release process (maintainers): publishing.md
- End-user execution steps: quick-start.md