diff --git a/.changeset/fix-completion-help-url.md b/.changeset/fix-completion-help-url.md new file mode 100644 index 0000000000..dc36cf4e0f --- /dev/null +++ b/.changeset/fix-completion-help-url.md @@ -0,0 +1,6 @@ +--- +"@pnpm/plugin-commands-completion": patch +"pnpm": patch +--- + +Fixed the documentation URL shown in `pnpm completion --help` to point to the correct page at https://pnpm.io/completion [#10281](https://github.com/pnpm/pnpm/issues/10281). diff --git a/completion/plugin-commands-completion/src/generateCompletion.ts b/completion/plugin-commands-completion/src/generateCompletion.ts index 2479a4fd04..04f6af4815 100644 --- a/completion/plugin-commands-completion/src/generateCompletion.ts +++ b/completion/plugin-commands-completion/src/generateCompletion.ts @@ -1,5 +1,4 @@ import renderHelp from 'render-help' -import { docsUrl } from '@pnpm/cli-utils' import { getCompletionScript, SUPPORTED_SHELLS } from '@pnpm/tabtab' import { getShellFromParams } from './getShell.js' @@ -14,7 +13,7 @@ export const cliOptionsTypes = (): Record => ({}) export function help (): string { return renderHelp({ description: 'Print shell completion code to stdout', - url: docsUrl('completion'), + url: 'https://pnpm.io/completion', usages: SUPPORTED_SHELLS.map(shell => `pnpm completion ${shell}`), }) }