mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-26 18:09:06 -04:00
fix: use kebab-case setting name in BAD_PM_VERSION hint
Copilot review feedback: user-facing error hints for configuration keys conventionally use the kebab-case form that matches both the CLI flag (`--pm-on-fail`) and the `.npmrc` key, consistent with the prior hint text that referenced `package-manager-strict`. The `pnpm-workspace.yaml` field (`pmOnFail`) is camelCase but that mapping is documented elsewhere.
This commit is contained in:
@@ -403,7 +403,7 @@ function checkPackageManager (pm: EngineDependency): void {
|
||||
const msg = `This project is configured to use ${pm.version} of pnpm. Your current pnpm is v${currentPnpmVersion}`
|
||||
if (shouldError) {
|
||||
throw new PnpmError('BAD_PM_VERSION', msg, {
|
||||
hint: 'If you want to bypass this version check, you can set the "pmOnFail" configuration to "warn" or "ignore" (e.g. via --pm-on-fail=ignore). If using "devEngines.packageManager", you can set its "onFail" to "warn" or "ignore"',
|
||||
hint: 'If you want to bypass this version check, you can set the "pm-on-fail" configuration to "warn" or "ignore" (e.g. via --pm-on-fail=ignore). If using "devEngines.packageManager", you can set its "onFail" to "warn" or "ignore"',
|
||||
})
|
||||
} else {
|
||||
globalWarn(msg)
|
||||
|
||||
Reference in New Issue
Block a user