fix: terminalLink does not support (#9277)

This commit is contained in:
btea authored and Zoltan Kochan committed 2025-03-13 12:17:01 +01:00
1 parent 4885c3708b
commit 968b85b446
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-patching": patch
---
When `terminalLink` is not supported, it should fallback to the default text.
@@ -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: