Skip to content

Commit

Permalink
fix: relative names when using removeFileExtension (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie authored Sep 3, 2024
1 parent 718b55c commit 7de5e20
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 7de5e20

Please sign in to comment.