You can find reproduction here - https://repl.it/repls/SubduedOriginalSystems
Plugin correctly resolves path and allows to import typescript types from other files
There are actually 2 issues:
@rollup/plugin-node-resolve using yarn, you will get warnings:warning " > @rollup/[email protected]" has incorrect peer dependency "rollup@^1.20.0".
warning "@rollup/plugin-node-resolve > @rollup/[email protected]" has incorrect peer dependency "rollup
After checking source code on github I see that 7.1.1 was published 2 month ago and plugin was adopted to 2.0 version 24 days ago. So, it seems that version was not published!
Error: 'Test' is not exported by src/types.ts, imported by src/index.ts
Thanks for reporting. we publish as we have time
I understand that you do not have always time to do all the things in such a big project. I can understand this because I support my own open source project. Thanks for doing a great job! I like rollup and its ecosystem, even wrote 2 own plugins myself
Unfortunately this blocks me to upgrade to rollup 2.x version :(
Did you consider to use something like https://semantic-release.gitbook.io/semantic-release/ ?
We have but there is usually a lot of nuance with publishing these.
Also please feel free to add your plugins to roll-up/awesome!
We've just published a bunch of packages tonight, including this one.
Unfortunately the same example doesn't work even with new versions. I'll try to setup the demo with versions were it works
Most helpful comment
We've just published a bunch of packages tonight, including this one.