Skip to content

Fix separator in getDefaultLibFileName #465

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

Merged
merged 1 commit into from
Apr 3, 2017

Conversation

nicknisi
Copy link
Collaborator

@nicknisi nicknisi commented Apr 2, 2017

Remove use of Path.join in the getDefaultLibFileName method that, on Windows, converts '/' in paths to '\'. TypeScript uses '/' internally so it has trouble locating the default lib location when this is reversed. Fixes #464 where lib directory cannot be found on Windows.

In this PR, I changed the getDefaultLibFileName method in compiler-host.ts to more resemble that which would be returned from ts.getCompilerHost, which also included exposing a few more methods in ts-internal.ts.

Remove use of Path.join in the getDefaultLibFileName method that, on Windows, converts '/' in paths to '\'. TypeScript
uses '/' internally so it has trouble locating the default lib location when this is reversed. Fixes TypeStrong#464 where lib
directory cannot be found on Windows.
@aciccarello
Copy link
Collaborator

Thanks @nicknisi. Is there any way we can avoid being tightly dependent on those internal typescript methods? See #310 for related discussion

@blakeembrey blakeembrey merged commit 627ab4b into TypeStrong:master Apr 3, 2017
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