Skip to content

Commit dc51d0e

Browse files
committed
Cleanup apply-optimizations
1 parent 9ce86b6 commit dc51d0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)