My App

Updating Dependencies

How to check and update dependencies in the monorepo

Last updated: Jan 19, 2026

Check Outdated Packages

# Check all outdated packages
ncu

# Check specific workspace
ncu --cwd apps/web
ncu --cwd apps/server
ncu --cwd packages/db

Update All Workspaces

# Preview updates across all workspaces
ncu --workspaces

# Apply updates to all package.json files
ncu -u --workspaces

# Install updated dependencies
bun install

Update Specific Workspace

# Update only the web app
ncu -u --cwd apps/web && bun install

# Update only the server
ncu -u --cwd apps/server && bun install

# Update only a package
ncu -u --cwd packages/db && bun install

Update Root Catalog

The root package.json contains a workspace catalog with shared versions. Update it separately:

# Check root package.json
ncu

# Update root package.json
ncu -u

# Install
bun install

Update Specific Package

# Update a single package everywhere
ncu -u --filter next --workspaces

# Update multiple packages
ncu -u --filter "next,react,typescript" --workspaces

# Install
bun install

Interactive Mode

# Interactively select which packages to update
ncu -i --workspaces

After Updating

Always run these after updating:

# Install new versions
bun install

# Check for type errors
bun run check-types

# Build to verify
bun run build

On this page