@farm.js/cli 0.1.0-beta.55 → 0.1.0-beta.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3322,11 +3322,13 @@ function getDependencySectionFlags(packageManager, section) {
3322
3322
  }
3323
3323
  function runFarmUpgradeCommand(command) {
3324
3324
  return new Promise((resolve, reject) => {
3325
- const executable = process.platform === "win32" ? `${command.command}.cmd` : command.command;
3325
+ const isWindows = process.platform === "win32";
3326
+ const executable = isWindows ? `${command.command}.cmd` : command.command;
3326
3327
  const child = (0, node_child_process.spawn)(executable, command.args, {
3327
3328
  cwd: command.cwd,
3328
3329
  env: process.env,
3329
- stdio: "inherit"
3330
+ stdio: "inherit",
3331
+ shell: isWindows
3330
3332
  });
3331
3333
  child.on("error", reject);
3332
3334
  child.on("close", (code, signal) => {