feat: add Turborepo monorepo template - #79
Conversation
PR preview published
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. Summary by CodeRabbit
WalkthroughThe CLI now offers a Turborepo template for Next.js monorepos with a shared Prisma database package. Generation supports template-specific Prisma paths, workspace packages, dependencies, Composer configuration, and Next.js deployment settings. New templates define Turborepo tasks, TypeScript configuration, package metadata, and ignore rules. Documentation and tests cover generated files, dependency versions, workspace configuration, builds, type checks, and Composer responses. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Summary
turborepotemplate, shown as Monorepo (Turborepo), with a Next.js app inapps/weband a shared Prisma package inpackages/databaseappDirplus Next.js output tracing@prisma/devpackages/databaseVerification
bun run typecheckbun run checkbun run test:unit— 42 passedbun run build@prisma/dev, built it, started compute and Postgres emulators, ran migrations, and verified seeded Alice/Bob/Carol over HTTPRelease dependency
Do not merge and release this template until both upstream fixes are merged and included in the versions consumed here:
Against the currently published packages, the Turborepo E2E correctly reproduces the upstream
local dev needs @prisma/devfailure. Adding@prisma/devdirectly to the template would hide the packaging bug and has intentionally been removed.Notes
The generated standalone Next.js artifact reports
relativeAppDir: "apps/web", so Composer packages the workspace-root dependencies and shared database package correctly.