Skip to content

Specifying --outDir on the CLI causes error TS5055 with declarations #15899

Description

TypeScript Version: 2.4.0-dev.20170517, 2.3.2

Files to reproduce: https://gist.github.com/slikts/7a35d205e01b54f169c7d13dfe248a69 (just an empty .ts file and an empty tsconfig.json file)

$ tsc --outDir dist --declaration true
$ tsc --outDir dist --declaration true
error TS5055: Cannot write file 'dist/Foo.d.ts' because it would overwrite input file.

This error does not occur if the outDir option is set in tsconfig.json.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions