Skip to content

🎥 Make videos programmatically with React

fix lambda go sdk publish script

Jonny Burgerbfd1c4366af5
diff --git a/packages/lambda-go/publish.mjs b/packages/lambda-go/publish.mjs
index 56f2053c43..cbdec408ea 100644
--- a/packages/lambda-go/publish.mjs
+++ b/packages/lambda-go/publish.mjs
@@ -28,6 +28,13 @@ execSync(
}
);
+const filesInWorkingDir = readdirSync(workingDir);
+for (const file of filesInWorkingDir) {
+ if (file !== ".git") {
+ rmSync(path.join(workingDir, file), { recursive: true });
+ }
+}
+
const dir = readdirSync(".");
for (const file of dir) {
if (file.endsWith(".go") && !file.endsWith("_test.go")) {