From e03c29b17497aed05acaec6568c5e17a28eabc8c Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 16 Apr 2026 23:24:11 +0200 Subject: [PATCH] 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. --- pnpm/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pnpm/src/main.ts b/pnpm/src/main.ts index 06148d35c4..02ff0219ee 100644 --- a/pnpm/src/main.ts +++ b/pnpm/src/main.ts @@ -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)