@salifbiaye/create-boutique 0.7.0 → 0.7.1

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.
@@ -466,7 +466,8 @@ export async function check(dir) {
466
466
  const url = boutiqueUrl(p, b);
467
467
  const html = await fetch(url).then((r) => (r.ok ? r.text() : Promise.reject(new Error(`boutique HTTP ${r.status}`))));
468
468
  // Mode single : le site n'affiche que la boutique active
469
- if (p.mode !== "single" && !html.includes(`data-theme="${b.theme}"`))
469
+ // Variante (theme.json → layout) : data-theme = mise en page empruntée, data-variant = le thème lui-même
470
+ if (p.mode !== "single" && !html.includes(`data-theme="${b.theme}"`) && !html.includes(`data-variant="${b.theme}"`))
470
471
  throw new Error(`thème ${b.theme} absent de la page`);
471
472
  steps.push("page");
472
473
  const key = composeOutput(target, ["exec", "-T", "backend", "cat", `/app/keys/${b.slug}`]).stdout.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salifbiaye/create-boutique",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Usine à Boutiques : génère un projet complet (backend Medusa + une boutique Next.js par campagne) prêt pour docker compose",
5
5
  "type": "module",
6
6
  "repository": {