mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
refactor(cli): name the staged template directory instead of commenting it
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user