copy-with-imports icon indicating copy to clipboard operation
copy-with-imports copied to clipboard

On windows if the path ends up absolute it has the wrong path seperators

Open lukeapage opened this issue 3 years ago • 1 comments

e.g.

image

I suspect getRelativePath only converts the slash in one place: https://github.com/stringham/copy-with-imports/blob/master/src/pathresolver.ts#L55

I would suggest either always replacing all back slashes or even using if (path.seperator is backslash then replace).

Are you still looking at this project, would you accept a PR?

lukeapage avatar Jan 06 '23 18:01 lukeapage

Yeah, I would accept a PR

stringham avatar Jan 06 '23 19:01 stringham