From c14497293bf784d26e3e2e67b5b330a57a2b93ef Mon Sep 17 00:00:00 2001 From: Oliver Eisenhut Date: Fri, 25 Oct 2024 15:41:34 +0200 Subject: [PATCH] Use correct path package During refactoring #8596, the `basename` import was changed from "path" to "path/posix", which doesn't properly reduce to the base name. This caused some filenames to contain the absolute path after publishing. --- packages/electron-publish/src/httpPublisher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/electron-publish/src/httpPublisher.ts b/packages/electron-publish/src/httpPublisher.ts index e744eb8d112..e5cb9496425 100644 --- a/packages/electron-publish/src/httpPublisher.ts +++ b/packages/electron-publish/src/httpPublisher.ts @@ -1,7 +1,7 @@ import { Arch } from "builder-util" import { stat } from "fs-extra" import { ClientRequest } from "http" -import { basename } from "path/posix" +import { basename } from "path" import { Publisher } from "./publisher" import { PublishContext, UploadTask } from "."