Войти
  • 1403Просмотров
  • 2 месяца назадОпубликованоNx - Smart Repos - Fast Builds

Ask Nx: How Do You Link Packages in an Nx Monorepos?

Confused about linking packages in your Nx monorepo? In this video, I break down the two different approaches Nx supports and when to use each one. 🔗 **What you'll learn:** - Why Nx has two package linking methods (historical context matters!) - TypeScript path mapping approach (still used for Angular) - npm/pnpm workspaces approach (modern standard) - How TypeScript project references work with workspaces 💬 Have other questions? Drop them in the comments or join our Discord ( )! == Further reading == - - == Chapters == - 00:00 Introduction - Why package linking confuses people - 00:55 Method 1: Angular + TypeScript Path Mapping Demo - 02:29 Method 2: npm/pnpm Workspaces Setup Demo - 06:39 TypeScript project references explained - 08:16 Key differences summary