@farm.js/create-app 0.1.0-beta.41 → 0.1.0-beta.43

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.mjs CHANGED
@@ -3352,11 +3352,13 @@ function detectPackageManager(userAgent = process.env.npm_config_user_agent) {
3352
3352
  }
3353
3353
  function installDependencies(projectPath, packageManager) {
3354
3354
  return new Promise((resolve, reject) => {
3355
- const command = process.platform === "win32" ? `${packageManager.name}.cmd` : packageManager.name;
3355
+ const isWindows = process.platform === "win32";
3356
+ const command = isWindows ? `${packageManager.name}.cmd` : packageManager.name;
3356
3357
  const child = spawn(command, ["install"], {
3357
3358
  cwd: projectPath,
3358
3359
  env: process.env,
3359
- stdio: "inherit"
3360
+ stdio: "inherit",
3361
+ shell: isWindows
3360
3362
  });
3361
3363
  child.on("error", reject);
3362
3364
  child.on("close", (code, signal) => {