I want to learn about pnpm monorepo workspaces
Welcome! I'm excited to help you master pnpm workspaces. Managing multiple packages in a single place can save you a ton of time once you get the hang of it.
Before we dive into the code and configuration, I'd love to know a bit about your background so we can make this session as useful as possible for you.
I'm looking to set up shared utility libraries for multiple applications.
Setting up shared utility libraries for multiple applications is one of the absolute best use cases for a monorepo.
The Monorepo Concept
A horizontal comparison of a fragmented multi-repo setup with external dependency publishing versus a unified monorepo with direct, local filesystem connections.
As you can see, a monorepo lets you directly edit your shared library and immediately see those updates reflected in your applications without waiting for a publication cycle. It makes sharing code effortless.
Are you currently managing these applications as separate repositories, or is this a completely fresh project?