Skip to content

Conversation

cspotcode
Copy link
Contributor

Adds support for running on Windows. Some path-related operations were assuming a posix OS. Now paths are always normalized to Posix-style forward-slash delimiters. Windows will accept both slashes as a delimiter and does not allow forward slashes in file or directory names, so this should be safe and predictable to users.

- path manipulation and comparison operations were assuming posix-style
paths.  Adds a bit of normalization so that paths on Windows are always
converted to use forward-slashes.  This is fine because Windows treats
both as path delimeters and forward slashes are not valid in directory
or file names.
@coveralls
Copy link

coveralls commented Oct 27, 2017

Coverage Status

Coverage decreased (-0.03%) to 85.208% when pulling 882a148 on cspotcode:feature/windows-support into 43ecda4 on buehler:develop.

@cspotcode
Copy link
Contributor Author

The decrease in code coverage is because there's an if-else block that runs one statement on Windows, the other on Linux and Mac.

@buehler
Copy link
Owner

buehler commented Oct 28, 2017

@cspotcode
THANK YOU!

I wanted to do this for so long. But never got time for it. 🎉

@buehler buehler merged commit 0ea36f1 into buehler:develop Oct 28, 2017
@buehler
Copy link
Owner

buehler commented Oct 28, 2017

This should actually fix some other issues in typescript hero! :-)

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.

3 participants