- Node.js 22+ (see
.nvmrc) - pnpm 9+
git clone <repo-url>
cd product-model
pnpm install
pnpm build# Run all checks
pnpm build # Build all packages
pnpm typecheck # TypeScript type checking
pnpm lint # Biome lint + format check
pnpm test # Run tests
# Fix formatting
pnpm lint:fix
pnpm formatpackages/
core/ @product-model/core — schemas, parser, validator
cli/ @product-model/cli — CLI entry point
models/ .product.mdx files (dogfood + examples)
- Branch from
main - Include tests for new functionality
- Ensure all checks pass:
pnpm build && pnpm typecheck && pnpm lint && pnpm test - Fill out the PR template
- Add a changeset if your change affects published packages:
pnpm changeset
Enforced by Biome. Tabs for indentation, double quotes, semicolons.