Skip to content

Commit

Permalink
Improve --run.node.versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 13, 2019
1 parent 2ccaf50 commit 76f1d65
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/processes/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export const executeChild = async function({
return outputA
}

// Commands cannot override the spawn options we set with one exception:
// `preferLocal` since that option can create issues with some runners, such as
// `node` runner `versions` option.
// Our spawn options have priority over commands spawn options.
const getSpawnOptions = function({
stdio,
cwd,
Expand All @@ -78,12 +76,12 @@ const getSpawnOptions = function({
}) {
const timeout = getTimeout(duration)
return {
preferLocal: true,
...commandSpawnOptions,
stdio,
cwd,
timeout,
buffer: false,
reject: false,
preferLocal: true,
}
}

0 comments on commit 76f1d65

Please sign in to comment.