Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Splitting path correctly on Windows #596

Merged
merged 1 commit into from
Sep 15, 2014
Merged

Splitting path correctly on Windows #596

merged 1 commit into from
Sep 15, 2014

Conversation

brendanator
Copy link
Contributor

Running component tsc on Windows fails with the error message component-tsc(1) does not exist.
This is because it splits the PATH on : which doesn't work well with ; separated paths beginning C:

The fix to make this portable on different operating systems is to just use path.delimiter

@netpoetica
Copy link

@timaschew I think we should merge this one in before a 1.0 release. This is just a good idea in general. I checked through the rest of the codebase and didn't find any other occurrences of splitting on ":" so this should solve the problem global.

Thanks for this pull request! Nice catch!

@netpoetica netpoetica mentioned this pull request Sep 14, 2014
21 tasks
timaschew added a commit that referenced this pull request Sep 15, 2014
Splitting path correctly on Windows
@timaschew timaschew merged commit 2da87e4 into componentjs:master Sep 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants