Skip to content

Compiler Option --outDir should remove existing files #13722

@ricklove

Description

@ricklove

TypeScript Version: 2.1.4 on Windows 10

Expected behavior:

When running tsc -w with outDir set, it should remove existing files.

Actual behavior:

Old files are left in the output directory and it seems that sometimes they block the creation of the new files.

I do have other build tools watching the output directory and I wonder if this is a problem, because if I try to delete the folder manually while the build tools are running, I get a warning that the directory is locked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions