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 paths for Windows users #957

Closed
wants to merge 1 commit into from

Conversation

DanielBertocci
Copy link

Under Windows:

  • fromCwd() returns a string with backslashes.
  • ts.parseJsonConfigFileContent returns the paths with slashes.

This causes this.rootFiles = tsConfigInfo.parsed.fileNames.filter(path => path.startsWith(fromCwd())); to match no files.

With this update the path check is safer.

@ssalbdivad
Copy link
Member

@DanielBertocci Thank you so much for implementing this! I actually already implemented a fix for the same thing on my dev branch and will publish it today.

Again though, I really appreciate the initiative and would love to work together on any other issues you run into in the future!

@ssalbdivad ssalbdivad closed this May 19, 2024
@DanielBertocci
Copy link
Author

Oh, I missed that fix, thank you for pointing it out!

@ssalbdivad
Copy link
Member

@DanielBertocci No you couldn't have known without checking the commits on my dev branch, I should have just prioritized getting it merged yesterday. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (merged or closed)
Development

Successfully merging this pull request may close these issues.

None yet

2 participants