How to Use Yarn Workspaces to Build a Vercel Monorepo

Simplify how you manage your repos!

What is a monorepo?

Prerequisites and planning

Connecting to Vercel

Sharing code between pacakges

yarn workspace ui add -D @vercel-monorepo/theme

Scripting our monorepos

"deploy": "vercel deploy --prod"
"start": "vercel dev",
"deploy": "vercel deploy --prod"
"start:ui": "yarn --cwd packages/ui start",
"start:functions": "yarn --cwd packages/functions start", "deploy:ui": "yarn --cwd packages/ui deploy",
"deploy:functions": "yarn --cwd packages/functions deploy"


💻 💻 Software Engineer at @filevine . 📖 📖 Instructor for @udacity . ✍️ ✍️ Writer at