plugins icon indicating copy to clipboard operation
plugins copied to clipboard

@rollup/plugin-typescript Incorrect DTS path

Open croatialu opened this issue 1 year ago • 5 comments

  • Rollup Plugin Name: @Rollup/plugin-typescript
  • Rollup Plugin Version: 8.4.0
  • Rollup Version: 2.79.0
  • Operating System (or Browser): macos
  • Node Version: v16.16.0
  • Link to reproduction (⚠️ read below):

When I set the declarationDir value to ./types, but the output path of the type file is still in dist

Expected Behavior

Type files should be generated in types

Actual Behavior

Type files are generated in dist

Additional Information

croatialu avatar Sep 02 '22 18:09 croatialu

https://github.com/rollup/plugins/pull/1252

croatialu avatar Sep 02 '22 18:09 croatialu

As a temporary workaround, you can pin @rollup/plugin-typescript to v8.3.3

danieleds avatar Sep 15 '22 13:09 danieleds

As a temporary workaround, you can pin @rollup/plugin-typescript to v8.3.3

Thank you for your idea. I tried it, but it didn't work. now I plan to use tsc to build type files

croatialu avatar Sep 15 '22 16:09 croatialu

Can we reopen this issue? The plugin is still broken.

danieleds avatar Sep 15 '22 17:09 danieleds

Can we reopen this issue? The plugin is still broken.

Sorry, yes, I may have misoperated...

croatialu avatar Sep 16 '22 01:09 croatialu