@koda-sl/baker-cli 0.272.0-dev.1f1c09c80 → 0.272.1-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 +9 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -30100,6 +30100,9 @@ async function syncSceneNodeParams(canvas, canvasPath, log) {
|
|
|
30100
30100
|
try {
|
|
30101
30101
|
rebuildRaw = await readFile7(path9.join(creativeDir, REBUILD_FILE), "utf8");
|
|
30102
30102
|
} catch {
|
|
30103
|
+
log(
|
|
30104
|
+
`[scenes] this creative has scene files but no ${REBUILD_FILE}, so edits to scenes/*.json are NOT reaching the render \u2014 the prompts inlined in the canvas are what renders. Re-scaffold the creative to restore the link, or edit the canvas node prompts directly.`
|
|
30105
|
+
);
|
|
30103
30106
|
return "not_applicable";
|
|
30104
30107
|
}
|
|
30105
30108
|
const { elements, opts } = JSON.parse(rebuildRaw);
|
|
@@ -33139,6 +33142,12 @@ var scaffoldAdCommand = defineCommand104({
|
|
|
33139
33142
|
const html = await readFile16(indexPath, "utf-8");
|
|
33140
33143
|
await writeFile9(indexPath, injectAdBrandOverlay(html, overlayHtml), "utf-8");
|
|
33141
33144
|
}
|
|
33145
|
+
await writeFile9(
|
|
33146
|
+
path24.join(outDir, REBUILD_FILE),
|
|
33147
|
+
`${JSON.stringify({ elements: adSpecCastElements(spec.data, avatar), opts }, null, 2)}
|
|
33148
|
+
`,
|
|
33149
|
+
"utf8"
|
|
33150
|
+
);
|
|
33142
33151
|
await writeFile9(outPath, `${JSON.stringify(canvas, null, 2)}
|
|
33143
33152
|
`, "utf-8");
|
|
33144
33153
|
writeJson({
|