When to extract a shared package in a monorepo: lessons from running 10 packages
After nearly a year running a pnpm monorepo with both a Next.js web app and an Expo mobile app, we worked out a repeatable set of criteria for deciding when to extract shared code into a package — and when to leave it inside the app.