Skip to content

Commit

Permalink
Revert excessive posix join in getPath() (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt authored and sindresorhus committed Jun 29, 2019
1 parent 9fded2f commit 8ff7f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(

const getPath = (filepath, cwd) => {
const pth = filepath[0] === '!' ? filepath.slice(1) : filepath;
return path.isAbsolute(pth) ? pth : path.posix.join(cwd, pth);
return path.isAbsolute(pth) ? pth : path.join(cwd, pth);
};

const addExtensions = (file, extensions) => {
Expand Down

0 comments on commit 8ff7f46

Please sign in to comment.