build/docs/migration-guide.md
Lilith 04c11f9980 feat: initial commit of @lilith/build-core and @lilith/lixb
Build tooling packages for the Lilith ecosystem:
- @lilith/build-core: Package detection, builders, and Vite presets
- @lilith/lixb: CLI for unified build commands

Key features:
- Auto-detect package type (library, NestJS, frontend)
- platformVite() plugin for consistent Vite configuration
- REEXPORT_EXCLUDE list for packages with star re-exports (ui-motion)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 23:13:15 -08:00

782 B

Migration Guide

Before

{
  "scripts": {
    "build": "npx --yes @nestjs/cli build"
  }
}

Or:

{
  "scripts": {
    "build": "tsc && vite build"
  }
}

Or:

{
  "scripts": {
    "build": "tsup src/index.ts --format cjs,esm --dts --clean"
  }
}

After

{
  "scripts": {
    "build": "lilith-build"
  }
}

That's it. The CLI detects the package type and runs the right command.

Bulk Migration

# Find all package.json files with build scripts
find . -name package.json -exec grep -l '"build"' {} \;

# Update each to use lilith-build
# (Manual review recommended for edge cases)

Escape Hatch

If auto-detection fails, force the type:

{
  "scripts": {
    "build": "lilith-build library"
  }
}