Skip to content

Commit

Permalink
refactor: switch file name to uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Feb 22, 2024
1 parent 7c7d696 commit d4c9085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PackageManager {
*/
public async install(pkg: PackageMetadataVersion): Promise<void> {
// Download the package's tarball file to a temporary location.
const file = relative(`../.tmp/${pkg.dist.shasum}.tar.gz`);
const file = relative(`../.tmp/${crypto.randomUUID()}.tar.gz`);
mkdirSync(dirname(file), { recursive: true });

try {
Expand Down

0 comments on commit d4c9085

Please sign in to comment.