Skip to content

--outDir and existing definition files #7957

@farfromrefug

Description

@farfromrefug

TypeScript Version:
1.8.9

Hi i am using outDir:"dist" option for my compiler.

Now my src is like this:

- test.d.ts
- test.ts

I handle the .d.ts myself because i want to force the definitions

Now the issue is that in the outDir i end up with a test.d.ts generated based on the test.ts and not the one i implicitely create. Which is also the one i get auto complete from.

I think that if the compiler see an alreading existing definition file, it should copy it and not even generate one.
Don't you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions