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 +7 -4
- package/package.json +1 -1
- package/templates/nextjs/base/src/app/checkout/page.tsx +975 -975
- package/templates/nextjs/base/src/components/checkout/payment-step.tsx +2 -2
- package/templates/nextjs/base/src/components/layout/language-switcher.tsx.ejs +12 -5
- package/templates/nextjs/base/src/lib/navigation.tsx.ejs +17 -4
- package/templates/nextjs/base/src/middleware.ts.ejs +35 -12
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.
|
|
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
|
|
169
|
-
const child = (0, import_child_process.spawn)(pkgManager
|
|
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:
|
|
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) => {
|