Skip to content

Commit

Permalink
fix: add hotfix for resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 24, 2021
1 parent 784f9b7 commit a221d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export const dirname: typeof path.dirname = function (p) {
}

// resolve
// TODO: Find a way to use path.posix for consistant behavior
export const resolve: typeof path.resolve = function (...args) {
return path.posix.resolve.apply(path.posix.resolve, args.map(arg => normalizeWindowsPath(arg)))
return path.resolve.apply(path.resolve, args.map(arg => normalizeWindowsPath(arg)))
}

// format
Expand Down

0 comments on commit a221d34

Please sign in to comment.