feat: log byte count for push and pull, increment version

This commit is contained in:
2026-03-20 17:59:41 +01:00
parent e6dea43555
commit 6a98ef4bed
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -26,6 +26,8 @@ export const pullDefinition = {
}
for (const file of files) {
fs.writeFileSync(path.join(options.into, file.name), file.content);
const byteSize = Buffer.byteLength(file.content, 'utf8');
console.log(chalk.green(`Pulled ${file.name} (${byteSize} bytes)`));
}
console.log(chalk.green(`Successfully pulled ${files.length} files into ${options.into}`));
} catch (error: any) {
+2 -1
View File
@@ -97,8 +97,9 @@ export const pushDefinition = {
code: file.content,
});
const byteSize = Buffer.byteLength(file.content, 'utf8');
console.log(
chalk.green(`Pushed ${file.filename} to function ${options.id}`),
chalk.green(`Pushed ${file.filename} (${byteSize} bytes) to function ${options.id}`),
);
pushedFilesCount++;
}