Merge pull request #318 from cloudflare/maximo/use-random-uuid-for-wrangler-artifacts-dir

Use random UUID when creating wrangler artifacts output directory
This commit is contained in:
Maximo Guk 2024-11-05 17:05:58 -04:00 committed by GitHub
commit 4c3f0c27ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,10 @@ const config = {
COMMANDS: getMultilineInput("command"),
QUIET_MODE: getBooleanInput("quiet"),
PACKAGE_MANAGER: getInput("packageManager"),
WRANGLER_OUTPUT_DIR: `${join(tmpdir(), "wranglerArtifacts")}`,
WRANGLER_OUTPUT_DIR: `${join(
tmpdir(),
`wranglerArtifacts-${crypto.randomUUID()}`,
)}`,
} as const;
const packageManager = getPackageManager(config.PACKAGE_MANAGER, {