Default tsconfig.json option forceConsistentCasingInFileNames
to True
to create case consistency between filesystems
#3013
Labels
feature-request
A feature should be added or improved.
module/compiler
Issues affecting the JSII compiler
p2
🚀 Feature Request
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
Description
Typescript relies on the case sensitivity of the filesystem when it checks the paths for imports. This creates issues when developing on a Win/Mac box but running CICD on Linux. It is possible to get an "all clear" from the local build, and then fail in the CICD system if a filename doesn't match the casing of the import.
Proposed Solution
By default, set the
forceConsistentCasingInFileNames
totrue
in the default options of the generatedtsconfig.json
fileThere appear to be 2 places where the compiler options for tsc are set:
I believe the first one will impact the compiler and generate the desired output. I'm not sure what the function of the second one is. It is likely a good idea to update both.
The text was updated successfully, but these errors were encountered: