Skip to content

Commit

Permalink
[feat] Replace path.normalize with path.posix.normalize (#36)
Browse files Browse the repository at this point in the history
* Replace path.normalize

---------

Co-authored-by: Brett <[email protected]>
  • Loading branch information
jiyuu-jin and BrettCleary authored Sep 18, 2024
1 parent 688ab4d commit b559eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperplay/cli",
"version": "2.14.2",
"version": "2.14.3",
"description": "Hyperplay CLI",
"author": "HyperPlay Labs, Inc.",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ async function getFolderFiles(folderPath: string): Promise<Array<{ fileName: str
const fileSize = (await fs.promises.stat(entryPath)).size;

// Normalize the paths for cross-platform consistency
const relativeFileName = path.normalize(path.relative(folderPath, entryPath));
const normalizedEntryPath = path.normalize(entryPath);
const relativeFileName = path.normalize(path.relative(folderPath, entryPath)).replace(/\\/g, '/');
const normalizedEntryPath = path.normalize(entryPath).replace(/\\/g, '/');

fileList.push({
fileName: relativeFileName,
Expand Down

0 comments on commit b559eeb

Please sign in to comment.