Skip to content

Commit

Permalink
fix: relative names when using removeFileExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Aug 14, 2024
1 parent c428b74 commit ef2b4a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function convertName(pth: string, nameStyle: 'short' | 'relative', removeFileExt
{
const name = nameStyle === 'short' ? path.basename(pth) : pth;

return removeFileExtension ? path.parse(name).name : name;
return removeFileExtension ? path.trimExt(name) : name;
}

export function createJsons(
Expand Down

0 comments on commit ef2b4a6

Please sign in to comment.