Closed
Description
TypeScript Version: 2.2.2
Code
irrelevant
Expected behavior:
On Windows 10, compiling Foo.ts
writes a file named Foo.js
to output folder.
Actual behavior:
If foo.js
(lowercase) already exists in output folder, the new file contents of Foo.ts
are written to foo.js
, but the file name's case doesn't change.
This issue just bit me in the real world on the EditorConfig vscode extension.
Workaround
Deleting foo.js
and running tsc
again solves the problem; though, this is not ideal.