Skip to content

Declarations not emitted for included type-only files #175

Closed
@cslecours

Description

@cslecours

What happens and why it is wrong

repro repository : https://github.com/cslecours/repro-ts-rollup-issue

In the output, I am missing types that were exported. In dist I see the types/index.d.ts but not types/abc.d.ts that it depends on. It seems to be related to the allImportedFiles Set that was added by 0.23 as I see that my files are skipped.

I did attempt at a fix, but it will probably break other things.
https://github.com/cslecours/rollup-plugin-typescript2

Environment

Versions

  • typescript: 3.1.6
  • rollup: 1.21.2
  • rollup-plugin-typescript2: 0.24.2

rollup.config.js

https://github.com/cslecours/repro-ts-rollup-issue/blob/master/rollup.config.js

tsconfig.json

package.json

plugin output with verbosity 3

https://github.com/cslecours/repro-ts-rollup-issue/blob/master/output_logs/npm-run-build.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: regressionSpecific type of bug -- past behavior that worked is now brokentopic: type-only / emit-less importsRelated to importing type-only files that will not be emitted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions