Back to articles
Migrating a monorepo from Yarn to PNPM

Migrating a monorepo from Yarn to PNPM

via Dev.to WebdevMatti Bar-Zeev

My Pedalboard monorepo has been running on Yarn 3 workspaces for quite a while now. I've written about it many times , setting it up, refactoring workspace scripts , making it build just what's needed , and even going through a whole Lerna drama . It's been a journey, and Yarn has served me well. But here's the thing, the JavaScript ecosystem moves fast, and pnpm has been gaining serious traction. Its strict dependency handling, blazing speed, and disk-space efficiency are hard to ignore. So I figured it's time to rip off the band-aid and migrate my workspaces from Yarn to pnpm. In this post, I'll walk you through the actual migration process, the gotchas I ran into, and whether pnpm lives up to the hype for a real-world monorepo. The Current Setup Before we start tearing things apart, let's look at what we're working with. The Pedalboard monorepo currently runs on: Yarn 3.2.0 with the workspace-tools plugin Lerna (independent versioning) for publishing 7 packages under packages/* - Re

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles