@koda-sl/baker-cli 0.281.6-dev.1f1c09c80 → 0.281.7-dev.1f1c09c80
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/cli.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
ulid,
|
|
59
59
|
validateCanvasDeep,
|
|
60
60
|
ytDlpBlockSignal
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-TDJI6TC4.js";
|
|
62
62
|
import {
|
|
63
63
|
csvOrJson,
|
|
64
64
|
daysAgoIso,
|
|
@@ -33325,6 +33325,12 @@ async function readBrandFromWorkspace(root = ".") {
|
|
|
33325
33325
|
function svgIsLiveText(svg) {
|
|
33326
33326
|
return /<text[\s>]/i.test(svg);
|
|
33327
33327
|
}
|
|
33328
|
+
async function markIsReal(markPath, root = ".") {
|
|
33329
|
+
const brandLogos = path22.join(root, BRAND_DIR, "logos");
|
|
33330
|
+
const brandFiles = await readdir8(brandLogos).catch(() => null);
|
|
33331
|
+
if (brandFiles) return await markDirectoryIsReal(brandLogos);
|
|
33332
|
+
return await markDirectoryIsReal(path22.dirname(markPath));
|
|
33333
|
+
}
|
|
33328
33334
|
async function markDirectoryIsReal(dir) {
|
|
33329
33335
|
const files = await readdir8(dir).catch(() => null);
|
|
33330
33336
|
if (!files) return false;
|
|
@@ -33567,7 +33573,7 @@ var scaffoldAdCommand = defineCommand105({
|
|
|
33567
33573
|
return;
|
|
33568
33574
|
}
|
|
33569
33575
|
}
|
|
33570
|
-
if (resolvedLogo && !await
|
|
33576
|
+
if (resolvedLogo && !await markIsReal(resolvedLogo)) {
|
|
33571
33577
|
writeJson({
|
|
33572
33578
|
ok: false,
|
|
33573
33579
|
error: {
|