AGENTS.md (repository root)
Acme Shop monorepo: storefront (Next.js), API (NestJS), shared database package (Prisma). pnpm workspaces + Turborepo.
Each app and package has its own AGENTS.md with local commands and rules. The nearest AGENTS.md to the files you edit takes precedence; this file covers what applies everywhere.
Commands (run from the root)
- Install:
pnpm install - Everything affected by your change:
pnpm turbo run lint typecheck test --filter=...[origin/main] - One package:
pnpm turbo run test --filter=@acme/api - Local services:
docker compose up -d(Postgres on 5432, Redis on 6379)
Cross-cutting rules
- Packages import each other via workspace names (
@acme/db), never relative paths across package folders. - Apps never import from other apps.
- Database schema changes only in
packages/db(see its AGENTS.md). - Shared types live in
packages/types; do not duplicate API types in the frontend. - Secrets come from environment variables;
.env.examplein each app lists them.
Pull requests
- One concern per PR. Title:
type(scope): summarywhere scope is the package name. - CI runs the same turbo command as above; run it locally first.