Back to Pnpm Io

CatalogMode

versioned_docs/version-10.x/settings/_catalogMode.mdx

latest559 B
Original Source

catalogMode

Added in: v10.12.1

  • Default: manual
  • Type: manual, strict, prefer

Controls if and how dependencies are added to the default catalog, when running pnpm add. There are three modes:

  • strict - only allows dependency versions from the catalog. Adding a dependency outside the catalog's version range will cause an error.
  • prefer - prefers catalog versions, but will fall back to direct dependencies if no compatible version is found.
  • manual (default) - does not automatically add dependencies to the catalog.