@farm.js/create-app 0.1.0-beta.42 → 0.1.0-beta.44

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
@@ -3359,11 +3359,13 @@ function detectPackageManager(userAgent = process.env.npm_config_user_agent) {
3359
3359
  }
3360
3360
  function installDependencies(projectPath, packageManager) {
3361
3361
  return new Promise((resolve, reject) => {
3362
- const command = process.platform === "win32" ? `${packageManager.name}.cmd` : packageManager.name;
3362
+ const isWindows = process.platform === "win32";
3363
+ const command = isWindows ? `${packageManager.name}.cmd` : packageManager.name;
3363
3364
  const child = (0, node_child_process.spawn)(command, ["install"], {
3364
3365
  cwd: projectPath,
3365
3366
  env: process.env,
3366
- stdio: "inherit"
3367
+ stdio: "inherit",
3368
+ shell: isWindows
3367
3369
  });
3368
3370
  child.on("error", reject);
3369
3371
  child.on("close", (code, signal) => {