-
-
Notifications
You must be signed in to change notification settings - Fork 599
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(typescript): Drive letter casing on win32 platforms #1134
fix(typescript): Drive letter casing on win32 platforms #1134
Conversation
Thanks for the PR. I see you checked the box for tests included, but don't see any tests in your PR. (Nearly) All fixes and features require an accompanying test to be accepted, even if the change looks obvious. It's required to protect against regression. |
@shellscape, the existing tests failed on my machine and with my fixes they pass. The problem is in figuring out how to automate the machine setup. One needs a windows drive installed in such way that node.js |
Can you suggest the right title for this PR, I've tried a million variations they all failed... |
(Title taken care of. It didn't like the hyphen in the scope) OK Thanks for the explanation on the test. That's pretty much all we need to archive to let that slide. Anyone wondering why it has no test can point back to your comment. WRT drives on Windows, it's not exactly easy to create new mounts. Your best bet would be creating a virtual drive/ramdisk, but I went through that process for https://github.com/shellscape/webpack-plugin-ramdisk#windows-users and came up short. I'm not aware of any new capabilities in the newer versions of Windows either. You're welcome to try, but we'll give it a pass if you'd rather not. |
thanks for fixing the title. I will pass on figuring out how to test this for now since I'm just trying to unblock another project that is consuming all my time, but I could add a new work item in case someone else has time to test properly all windows file system case insensitivities... |
@shellscape it might be relatively easy to reproduce the bug on any windows machine. Create a shortcut that launches Then try and run the rollup tests with |
Rollup Plugin Name:
plugin-typescript
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
Description
As in several other places in this code base the regex for matching windows drive letters should be
/^([a-zA-Z]+):/
but one case was missing in the implementation of TSCache.