Development guide
Resources for contributing to AlignTrue and understanding the codebase.
Prerequisites
- Node >=20 and pnpm >=9 (see
package.jsonengines) - Install dependencies once at repo root with
pnpm installbefore running commands
Getting started
- Setup - Local development environment setup
- Workspace - Monorepo structure and package organization
- Commands - Build, test, and development commands
- Architecture - System design and technical decisions
Development workflow
- Clone and setup: Follow the setup guide
- Make changes: Edit code in the relevant package
- Fast test loop: Use
pnpm test:fastduring iteration - Lint and types: Run
pnpm lintthenpnpm typecheck - Build: Run
pnpm buildto verify compilation - CI parity: See CI checks for full validation before PRs
Package structure
AlignTrue uses a pnpm workspace with the following packages:
packages/cli- Command-line interfacepackages/core- Core sync engine and configurationpackages/schema- IR validation and canonicalizationpackages/exporters- Agent-specific exporters (see agent support for the current list)packages/sources- Multi-source pulling (local, git)apps/docs- Documentation site (Nextra)
See workspace guide for detailed package descriptions.
Last updated on