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 bac3905 commit dc2d7daCopy full SHA for dc2d7da
lib/run-task.js
@@ -192,13 +192,15 @@ module.exports = function runTask (task, options) {
192
}
193
194
const isYarn = process.env.npm_config_user_agent && process.env.npm_config_user_agent.startsWith('yarn')
195
+ const isPnpm = Boolean(process.env.PNPM_SCRIPT_SRC_DIR)
196
+ const isNpm = !isYarn && !isPnpm
197
198
const spawnArgs = ['run']
199
200
if (npmPathIsJs) {
201
spawnArgs.unshift(npmPath)
202
- if (!isYarn) {
203
+ if (isNpm) {
204
Array.prototype.push.apply(spawnArgs, options.prefixOptions)
205
} else if (options.prefixOptions.indexOf('--silent') !== -1) {
206
spawnArgs.push('--silent')
0 commit comments