From e1a5fbc5929ca30a188f2abb7d4662cfd1591c67 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 13 Mar 2025 19:16:27 +0800 Subject: [PATCH] fix: `terminalLink` does not support (#9277) --- .changeset/bumpy-forks-love.md | 5 +++++ patching/plugin-commands-patching/src/patch.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/bumpy-forks-love.md 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: