Skip to content
LITHOEN

Evidence platform and governance

Document

ADR-0003: Workspace packages ship TypeScript source

Repository path
docs/decisions/ADR-0003-source-only-workspace-packages.md
Size · SHA-256
884 B · aeee2c408a2a3e3bdb37c1ba75456ac2793402f33d42dcaf03e3898ceaecd322

Status: accepted (2026-09-06)

Context

Eight internal packages; one Next.js consumer; scripts run via tsx; tests via Vitest.

Decision

Package main/exports point at src/index.ts. Next transpiles them via transpilePackages; Vitest and tsx resolve them natively; one root tsc --noEmit (plus the app's) typechecks everything. No per-package build, dist, or watch orchestration. Intra-package imports are extensionless (bundler resolution); pnpm's isolated node linker keeps undeclared cross-package imports unresolvable, which makes package boundaries real.

Consequences

  • Zero build orchestration; refactors are instant across the monorepo.
  • Packages are not externally publishable as-is. Acceptable: they are private by design; a build step can be added per-package later without changing import sites.