create-brainerce-store 1.27.5 → 1.27.6
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 +3 -12
- package/messages/en.json +382 -378
- package/messages/he.json +382 -378
- package/package.json +46 -46
- package/templates/nextjs/base/next.config.ts +31 -31
- package/templates/nextjs/base/src/app/checkout/page.tsx +973 -972
- package/templates/nextjs/base/src/app/order-confirmation/page.tsx +271 -271
- package/templates/nextjs/base/src/app/payment-complete/page.tsx +59 -59
- package/templates/nextjs/base/src/app/products/[slug]/product-client-section.tsx +27 -12
- package/templates/nextjs/base/src/app/products/page.tsx +475 -475
- package/templates/nextjs/base/src/components/checkout/custom-fields-step.tsx +258 -184
- package/templates/nextjs/base/src/components/checkout/payment-step.tsx +592 -592
- package/templates/nextjs/base/src/lib/navigation.tsx.ejs +60 -60
- package/templates/nextjs/themes/luxury/globals.css +399 -399
- package/templates/nextjs/themes/luxury/theme.json +23 -23
- package/templates/nextjs/themes/playful/globals.css +400 -400
- package/templates/nextjs/themes/playful/theme.json +23 -23
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.27.
|
|
34
|
+
version: "1.27.6",
|
|
35
35
|
description: "Scaffold a production-ready e-commerce storefront connected to Brainerce",
|
|
36
36
|
bin: {
|
|
37
37
|
"create-brainerce-store": "dist/index.js"
|
|
@@ -355,20 +355,11 @@ async function scaffold(options) {
|
|
|
355
355
|
const appDir = import_path.default.join(targetDir, "src", "app");
|
|
356
356
|
const localeDir = import_path.default.join(appDir, "[locale]");
|
|
357
357
|
await import_fs_extra.default.ensureDir(localeDir);
|
|
358
|
-
const keepInAppRoot = /* @__PURE__ */ new Set([
|
|
359
|
-
"globals.css",
|
|
360
|
-
"robots.ts",
|
|
361
|
-
"sitemap.ts",
|
|
362
|
-
"api",
|
|
363
|
-
".well-known"
|
|
364
|
-
]);
|
|
358
|
+
const keepInAppRoot = /* @__PURE__ */ new Set(["globals.css", "robots.ts", "sitemap.ts", "api", ".well-known"]);
|
|
365
359
|
const appEntries = await import_fs_extra.default.readdir(appDir, { withFileTypes: true });
|
|
366
360
|
for (const entry of appEntries) {
|
|
367
361
|
if (keepInAppRoot.has(entry.name) || entry.name === "[locale]") continue;
|
|
368
|
-
await import_fs_extra.default.move(
|
|
369
|
-
import_path.default.join(appDir, entry.name),
|
|
370
|
-
import_path.default.join(localeDir, entry.name)
|
|
371
|
-
);
|
|
362
|
+
await import_fs_extra.default.move(import_path.default.join(appDir, entry.name), import_path.default.join(localeDir, entry.name));
|
|
372
363
|
}
|
|
373
364
|
}
|
|
374
365
|
if (await import_fs_extra.default.pathExists(themeDir)) {
|