Skip to main content
Wright Websites

monorepo-gauge

check workspace hygiene

Hygiene checks for npm/yarn/pnpm workspaces: circular internal dependencies, internal ranges that no longer match, shared dependency drift, duplicate names, public packages depending on private ones.

  • 16/week on npm
  • 2★
  • MIT
  • v1.1.1
  • Developer Tooling
npx monorepo-gauge

Read the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)

monorepo-gauge

From the README

Monorepos rot quietly. A package bumps to 2.0.0 while a sibling still asks for ^1.0.0, so the package manager fetches the old copy from the registry instead of linking the local one. One app moves to React 18 and another stays on 17. Two packages end up importing each other. A published package depends on a private one that users can never install. monorepo-gauge reads your workspace layout and reports these problems with the file, a severity and a concrete fix.

npx monorepo-gauge                       # run at the monorepo root
npx monorepo-gauge --fail-on medium
npx monorepo-gauge --versioning fixed    # all publishable packages share one version
npx monorepo-gauge --ignore-packages "playground-*,examples/**"

Related packages

Developer Tooling