Build and Test
Commands for building, typechecking, and testing LightMem2.
Build
bash
# Build everything
pnpm build
# Build the CLI specifically
pnpm lightmem2:build
pnpm lightmem2:install
# Build specific adapter
npm --prefix components/adapters/openclaw run build
npm --prefix components/adapters/codex run build
npm --prefix components/adapters/claude-code run buildTypecheck
bash
# Typecheck all packages
pnpm typecheck
# Typecheck specific package
npm --prefix components/packages/foundation/runtime-core run typecheckTest
bash
# Run all tests
pnpm lightmem2:test
# Run tests for specific package
npm --prefix components/products/cli testCI
GitHub Actions workflows are in .github/workflows/. The CI runs:
- Typecheck
- Build
- Tests
Documentation
bash
pnpm docs:dev # Dev server with hot reload
pnpm docs:build # Production build
pnpm docs:preview # Preview production build