this post was submitted on 07 Mar 2024
16 points (100.0% liked)

JavaScript

1700 readers
1 users here now

founded 1 year ago
MODERATORS
 

Hello all,

My company is looking into building a new app from scratch based on Next.js with a few modules on the side (batch jobs, utility services, etc.)

Our current monorepo has been started over 4 years ago with Yarn Classic + Lerna and I was wondering what is the current consensus for building a monorepo, considering that the landscape has evolved greatly since then (npm now supports workspaces, pnpm has gained in popularity, Yarn has been re-engineered and multiple build systems have been released)

I would greatly appreciate if you have some comparison between package managers and build systems you could link to.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 8 months ago (1 children)

We're still using Yarn and Lerna on our projects at work. We're about to start a fresh new build though and have been looking at NX for the new setup. From our PoCs it works a lot better. Lots less rebuilding and bootstrapping with it's built-in caching. Looking forward to implementing it properly.

Still want to look into Yarn 2 and see if it works with it.

[–] [email protected] 2 points 8 months ago (1 children)

I took a look at NX, they seem to limit some features (like NX Agents) to their Cloud offering, don't they?

[–] [email protected] 1 points 8 months ago

They do. I haven't tried out their cloud offering yet. Even without that though, I've found the builds running faster with just their change detection and caching systems.

[–] CombatWombatEsq 2 points 8 months ago

I use yarn 4 plus turborepo and am very happy with my setup. You can see tybalt for a reasonably-sized project with my preferred monorepo setup.