fix: terminalLink does not support (#9277)

This commit is contained in:
btea
2025-03-13 19:16:27 +08:00
committed by Zoltan Kochan
parent 4885c3708b
commit 968b85b446
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-patching": patch
---
When `terminalLink` is not supported, it should fallback to the default text.

View File

@@ -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: