Skip to content

valid-packageManager

💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.

This rule uses package-json-validator to validate the packageManager property, if present, against the following criteria:

  • It should have a string value
  • It should be in the form "packageManager@version"
  • The packageManager portion should be one of npm, pnpm, yarn, bun, or deno
  • The version portion should be a full semver version number, optionally followed by a sha hash for that version
{
"packageManager": "pnpm@>=10"
}