Skip to content

Commit

Permalink
remove double extension #265
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Feb 28, 2020
1 parent 6925db7 commit c731e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function getOutDir(customOutDir, filePath) {

function getOutPath(customOutDir, filePath, nameSuffix) {
if (!filePath) return undefined;
const basename = path.basename(filePath);
const parsed = path.parse(filePath);

return path.join(getOutDir(customOutDir, filePath), `${basename}-${nameSuffix}`);
return path.join(getOutDir(customOutDir, filePath), `${parsed.name}-${nameSuffix}`);
}

async function transferTimestamps(inPath, outPath) {
Expand Down

0 comments on commit c731e07

Please sign in to comment.