@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.
- package/cli/dist/commands.js +2 -1
- package/package.json +1 -1
package/cli/dist/commands.js
CHANGED
|
@@ -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
|
-
|
|
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