--- name: turborepo-workflow description: Turborepo conventions for monorepos only — task pipeline (lint, typecheck, test, build, storybook build), caching, PR filtering, shared config package, pnpm workspaces. Load when the repo is already a monorepo; never for single-package projects. --- # Turborepo workflow **Monorepos only.** A single-package repo is the default. Use workspaces and Turborepo only when the app or library genuinely lives in a monorepo. Do not add Turbo to a single-package repo or convert a repo to a monorepo to use it. ## Workspaces (pnpm) - Declare `packages: ["apps/*", "packages/*"]` in `pnpm-workspace.yaml` at the root. - Internal deps use the `workspace:` protocol: `"@acme/ui": "workspace:*"`. - Inspect with `pnpm -r ls --depth -1`; run in one package with `pnpm --filter