Skip to content

tsc doesn't output proper file case on Windows 10 #15129

Closed
@jednano

Description

@jednano

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.

vscode

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions