Skip to content

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 build

Typecheck

bash
# Typecheck all packages
pnpm typecheck

# Typecheck specific package
npm --prefix components/packages/foundation/runtime-core run typecheck

Test

bash
# Run all tests
pnpm lightmem2:test

# Run tests for specific package
npm --prefix components/products/cli test

CI

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

Next

Released under the MIT License.