From 3de2915358326417c996c73c11677684ff3a352a Mon Sep 17 00:00:00 2001 From: "David J. Hamilton" Date: Fri, 24 Jan 2020 21:45:20 -0800 Subject: [PATCH] Make execa use compatible with volta (cherry picked from commit 2955e2cf7c142147f0baf31def48e65e03f4afb2) --- bin/publish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/publish.js b/bin/publish.js index 488bcf6db8a..f5789568c91 100644 --- a/bin/publish.js +++ b/bin/publish.js @@ -53,10 +53,10 @@ function cleanProject() { function execWithLog(command, proxyIO = false) { debug(chalk.cyan('Executing: ') + chalk.yellow(command)); if (proxyIO) { - return execa.sync(command, { stdio: [0, 1, 2], shell: true }); + return execa.sync(command, { stdio: [0, 1, 2], shell: true, preferLocal: true }); } - return execa.sync(command, { shell: true }).stdout; + return execa.sync(command, { shell: true, preferLocal: true }).stdout; } function getConfig() {