- This repo is a
bunmonorepo. - Workspace packages live under
apps/*andpackages/*as declared in the rootpackage.json. - Prefer workspace-aware commands from the repo root unless there is a clear reason to run inside a single app.
- Use
bunfor package management, script execution, and workspace operations. - Run installs from the repo root with
bun install. - Use workspace-aware commands when appropriate, for example
bun run --filter frontend buildorbun run --filter learning-hono dev. - Use
--cwdwhen you need to target one app directly, for examplebun run --cwd apps/frontend test. - Add dependencies with
bun addin the correct workspace, for examplebun add --cwd apps/frontend <pkg>. - Keep changes scoped to the relevant workspace instead of duplicating config across apps.
- Check the nearest
package.jsonbefore adding scripts or dependencies.
- Do not use
npm,pnpm, oryarnin this repo. - Do not introduce another lockfile format.
- Do not install dependencies from inside a workspace if the same result should be managed from the repo root.
- Do not assume every workspace has the same scripts; verify the target workspace first.
- Do not move workspace packages outside
apps/*orpackages/*without updating the root workspace config. - Do not edit
package.jsondependency entries by hand whenbun addorbun removeshould be used.
apps/frontend/package.jsonprovidesdev,build,preview, andtest.apps/backend/package.jsoncurrently providesdevand runs onbun.- The root
package.jsondefines workspaces but does not currently define root scripts, so prefer workspace-targeted commands.