diff --git a/.changeset/bumpy-forks-love.md b/.changeset/bumpy-forks-love.md new file mode 100644 index 0000000000..9e8d4697ee --- /dev/null +++ b/.changeset/bumpy-forks-love.md @@ -0,0 +1,5 @@ +--- +"@pnpm/plugin-commands-patching": patch +--- + +When `terminalLink` is not supported, it should fallback to the default text. diff --git a/patching/plugin-commands-patching/src/patch.ts b/patching/plugin-commands-patching/src/patch.ts index 9f83ff7b9d..b8e2476039 100644 --- a/patching/plugin-commands-patching/src/patch.ts +++ b/patching/plugin-commands-patching/src/patch.ts @@ -127,7 +127,7 @@ export async function handler (opts: PatchCommandOptions, params: string[]): Pro return `Patch: You can now edit the package at: - ${terminalLink(chalk.blue(editDir), 'file://' + editDir)} + ${terminalLink(chalk.blue(editDir), 'file://' + editDir, { fallback: false })} To commit your changes, run: