Skip to content

refactor: restructure into monorepo with Bun workspaces - #5

Merged
PlayerNguyen merged 1 commit into
masterfrom
feat/monorepo-workspace-restructure
Jun 2, 2026
Merged

refactor: restructure into monorepo with Bun workspaces#5
PlayerNguyen merged 1 commit into
masterfrom
feat/monorepo-workspace-restructure

Conversation

@PlayerNguyen

Copy link
Copy Markdown
Owner

Summary

Restructures the project from independent subpackages under app/ to a proper monorepo using Bun workspaces.

Changes

  • New layout: apps/api, apps/ui, packages/common
  • Root package.json: Added "workspaces": ["apps/*", "packages/*"], replaced cd-based scripts with bun run --filter
  • dashbore-common: Switched from bun link to workspace:* protocol (automatic symlinking via workspaces)
  • Prisma: Added explicit output = "../generated/prisma" to schema (Bun workspaces don't create the .prisma symlink in local node_modules)
  • Path aliases: Updated all tsconfig.json and vite.config.js aliases for new layout
  • Installation: Single bun install at root handles everything
  • Removed: Stale node_modules, bun.lockb, package-lock.json from subpackages

- Move app/api → apps/api, app/ui → apps/ui, app/common → packages/common
- Add workspaces ["apps/*", "packages/*"] to root package.json
- Replace per-package cd scripts with bun run --filter commands
- Convert dashbore-common from bun link to workspace:* protocol
- Set explicit Prisma output dir (generated/prisma) instead of node_modules/.prisma
- Update all path aliases (tsconfig, vite.config) for new layout
- Update AGENTS.md with new paths
- Remove stale node_modules, bun.lockb files from subpackages
@PlayerNguyen
PlayerNguyen merged commit 25c0060 into master Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant