Skip to content

Commit 93f12e2

Browse files
committed
Cleanup apply-optimizations
1 parent c4ccbb6 commit 93f12e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/optimize/apply-optimization.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ async function addOverrides(
100100
if (
101101
isWorkspace &&
102102
agent === PNPM &&
103+
// npmExecPath will === the agent name IF it CANNOT be resolved.
103104
npmExecPath === NPM &&
104105
!state.warnedPnpmWorkspaceRequiresNpm
105106
) {
106107
state.warnedPnpmWorkspaceRequiresNpm = true
107108
logger?.warn(
108109
cmdPrefixMessage(
109110
CMD_NAME,
110-
'pnpm workspace support requires `npm ls`, falling back to `pnpm list`'
111+
`${agent} workspace support requires \`npm ls\`, falling back to \`${agent} list\``
111112
)
112113
)
113114
}

0 commit comments

Comments
 (0)