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>
856 B
856 B
Detection Rules
The CLI checks for files in priority order:
| Priority | Check | Result |
|---|---|---|
| 1 | nest-cli.json exists |
nestjs |
| 2 | vite.config.ts + React dep |
frontend |
| 3 | tsup.config.ts exists |
library |
| 4 | build script contains "tsup" |
library |
| 5 | vite.config.ts (no React) |
frontend |
| 6 | None of above | unknown (error) |
Confidence Levels
- high: Definitive config file found
- medium: Inferred from package.json
- low: Fallback/unknown
Edge Cases
Package has both vite.config.ts AND nest-cli.json
→ NestJS wins (priority 1)
Package has vite.config.ts but no React
→ Treated as frontend with medium confidence
Package has tsup in devDependencies but no config
→ Falls through to unknown unless build script mentions tsup