create-brainerce-store 1.28.1 → 1.28.4

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
@@ -31,7 +31,7 @@ var require_package = __commonJS({
31
31
  "package.json"(exports2, module2) {
32
32
  module2.exports = {
33
33
  name: "create-brainerce-store",
34
- version: "1.28.1",
34
+ version: "1.28.4",
35
35
  description: "Scaffold a production-ready e-commerce storefront connected to Brainerce",
36
36
  bin: {
37
37
  "create-brainerce-store": "dist/index.js"
@@ -165,11 +165,14 @@ async function installDependencies(projectDir, pkgManager) {
165
165
  }
166
166
  return new Promise((resolve, reject) => {
167
167
  const isWindows = process.platform === "win32";
168
- const args = pkgManager === "yarn" ? [] : ["install"];
169
- const child = (0, import_child_process.spawn)(pkgManager, args, {
168
+ const subcommand = pkgManager === "yarn" ? "" : "install";
169
+ const child = isWindows ? (0, import_child_process.spawn)(`${pkgManager} ${subcommand}`.trim(), {
170
170
  cwd: projectDir,
171
171
  stdio: ["ignore", "ignore", "pipe"],
172
- shell: isWindows
172
+ shell: true
173
+ }) : (0, import_child_process.spawn)(pkgManager, subcommand ? [subcommand] : [], {
174
+ cwd: projectDir,
175
+ stdio: ["ignore", "ignore", "pipe"]
173
176
  });
174
177
  let stderrBuf = "";
175
178
  child.stderr?.on("data", (chunk) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-brainerce-store",
3
- "version": "1.28.1",
3
+ "version": "1.28.4",
4
4
  "description": "Scaffold a production-ready e-commerce storefront connected to Brainerce",
5
5
  "bin": {
6
6
  "create-brainerce-store": "dist/index.js"