Skip to content

🎥 Make videos programmatically with React

randomize cwd when publishing php + go

Jonny Burgerb8e32f43d52c
diff --git a/packages/lambda-go/publish.mjs b/packages/lambda-go/publish.mjs
index c128965242..e7aca84c35 100644
--- a/packages/lambda-go/publish.mjs
+++ b/packages/lambda-go/publish.mjs
@@ -14,7 +14,7 @@ import path from "node:path";
const tmpDir = tmpdir();
-const workingDir = path.join(tmpDir, "lambda-go-sdk");
+const workingDir = path.join(tmpDir, `lambda-go-sdk-${Math.random()}`);
if (existsSync(workingDir)) {
rmSync(workingDir, { recursive: true });
}
diff --git a/packages/lambda-php/publish.mjs b/packages/lambda-php/publish.mjs
index 7d537ef885..db7c27e069 100644
--- a/packages/lambda-php/publish.mjs
+++ b/packages/lambda-php/publish.mjs
@@ -13,7 +13,7 @@ import path from "node:path";
const tmpDir = tmpdir();
-const workingDir = path.join(tmpDir, "lambda-php-sdk");
+const workingDir = path.join(tmpDir, `lambda-php-sdk-${Math.random()}`);
if (existsSync(workingDir)) {
rmSync(workingDir, { recursive: true });
}