refactor(cli): name the staged template directory instead of commenting it

This commit is contained in:
Miguel Angel Simon Sierra
2026-10-22 15:53:20 -04:00
parent ede453d1f4
commit ebea35944b
@@ -91,10 +91,9 @@ export async function stagePrebuiltHandler(deps: StageDeps = defaultDeps): Promi
renameSync(partial, zip);
deps.log(`→ Verified sha256 ${pinned.sha256}`);
}
// The template and the nested templates it deploys (video-function.yaml).
const templates = dirname(pinned.templatePath);
for (const file of readdirSync(templates).filter((name) => name.endsWith(".yaml"))) {
copyFileSync(join(templates, file), join(dir, file));
const templateDir = dirname(pinned.templatePath);
for (const file of readdirSync(templateDir).filter((name) => name.endsWith(".yaml"))) {
copyFileSync(join(templateDir, file), join(dir, file));
}
return dir;
}