Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path issues 2 - src may be relative #81

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lukeapage
Copy link
Contributor

@cloudchen sorry I messed up with my previous P.R.
In some cases it made it worse. I've taken another look at this to make a better fix...

if src is relative and baseDir is absolute then path.relative can give strange results. We need to normalise both the paths to file paths in order to compare them correctly with relative.

if src is relative and baseDir is absolute then path.relative can give strange results. We need to normalise both the paths to file paths in order to compare them correctly with relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant