refactor(turbo): consume workspace package exports #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/turbo-package-exports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tightens the workspace package boundary so the web app consumes internal packages through their package exports instead of direct source aliases.
Why
The app already declares
@dimensionlab/uiand@dimensionlab/dashboard-modelas workspace dependencies, but Vite and TypeScript still mapped those imports topackages/*/src. That bypassed the reusable package contract and made the Turborepo graph less authoritative.Changes
@dimensionlab/*source aliases fromapps/web/tsconfig.json.apps/web/vite.config.ts.$libalias.devdepend on^buildso package export artifacts exist before the web dev server starts.Testing
bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.tsrm -rf packages/dashboard-model/dist packages/ui/dist apps/web/build apps/web/dist && bun run buildbun run checkbun run test:unitbunx turbo run dev --filter=@dimensionlab/web --dry=jsonbun run test:qabun run db:checkpodman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-package-exports ./and/api/dashboard.bun run devsmoke served/and/api/dashboardafter dependency package builds.Notes
This intentionally follows the compiled-package pattern already implied by the package
exportsmaps and Turbo^builddependencies.