From ebea35944bdf537461d11b5fa3c5aaa71efa6b79 Mon Sep 17 00:00:00 2001 From: Miguel Angel Simon Sierra Date: Thu, 22 Oct 2026 15:53:20 -0400 Subject: [PATCH] refactor(cli): name the staged template directory instead of commenting it --- packages/cli/src/commands/lambda/prebuiltHandler.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/commands/lambda/prebuiltHandler.ts b/packages/cli/src/commands/lambda/prebuiltHandler.ts index a1b4e178ec..0be52c6c5d 100644 --- a/packages/cli/src/commands/lambda/prebuiltHandler.ts +++ b/packages/cli/src/commands/lambda/prebuiltHandler.ts @@ -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; }