TypeStrong / tsify

Browserify plugin for compiling TypeScript
344 stars 75 forks source link

Improve check for case sensitivity of filesystem #278

Closed thammi closed 3 years ago

thammi commented 3 years ago

Fixes #277.

This patch is better at detecting filesystem setups that are only partly case sensitive. It will remove the "feature" of case insensitive behavior if any part of the path is case sensitive (which I personally don't miss at all).

Please note that the approach used to check for case sensitivity breaks if the part of the path that is case sensitive is already uppercase (probably an uncommon edge case though). Doing the same check additionally with toLowerCase() would fix that, not sure whether it's worth it.

cartant commented 3 years ago

Released in 5.0.3.

It will remove the "feature" of case insensitive behavior

You can blame TypeScript for this. It was added because this package needs to be able to guess the paths that TypeScript uses for its 'outputs'.