We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ccbb6 commit 93f12e2Copy full SHA for 93f12e2
src/commands/optimize/apply-optimization.ts
@@ -100,14 +100,15 @@ async function addOverrides(
100
if (
101
isWorkspace &&
102
agent === PNPM &&
103
+ // npmExecPath will === the agent name IF it CANNOT be resolved.
104
npmExecPath === NPM &&
105
!state.warnedPnpmWorkspaceRequiresNpm
106
) {
107
state.warnedPnpmWorkspaceRequiresNpm = true
108
logger?.warn(
109
cmdPrefixMessage(
110
CMD_NAME,
- 'pnpm workspace support requires `npm ls`, falling back to `pnpm list`'
111
+ `${agent} workspace support requires \`npm ls\`, falling back to \`${agent} list\``
112
)
113
114
}
0 commit comments