-
-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing .d.ts files with typescript plugin? #1495
Comments
Please search the issues before opening new ones. This has been covered ad nauseum |
Okay, I looked through every issue here https://github.com/rollup/plugins/issues?q=is%3Aissue+.d.ts+ Found this one #1433 (unresovled) Looked through all 300+ issues here https://github.com/rollup/plugins/issues?q=is%3Aissue+export Didn't find a single relevant issue Looked through all 260+ issues here https://github.com/rollup/plugins/issues?q=is%3Aissue+typescript Found this one: #1119 (closed) This one: #1112 (closed) This one: #1049 is terse and not at all clear what the solution is supposed to be. I tried modifying my files as seemed to be suggested
But the correct files did not get written and now my output is in the wrong place. Someone else in that thread suggested specifying the
Still didn't generate the missing files Saw this issue: #978 Which suggested adding a "declarationDir" though it didn't say where. Tried adding to the
No luck Tried make it
No change, still not generating missing files This one: #934 seemed irrelevant This one: #833 (closed) This one: #247 suggested adding
It also gave a config that worked for someone. I tried applying it
No luck, still not generating the missing files Also tried just having the rule that's supposed to generate the files
No luck. Still not generating the missing files Looks like this issue: #394 says, it's not supported and not supposed to be supported. Use another tool. Either the ...-dts plugin or tsc itself. So in the end I ended up with rollup.config.json
tsconfig.json
and my build being 2 steps
(or inside package.json)
|
Expected Behavior
using
rollup -c
producesfoo.d.ts
Actual Behavior
using
rollup -c
does not productfoo.d.ts
even though thefoo-impl.d.ts
it generates is dependent onfoo.d.ts
Additional Information
tsc
does producefoo.d.ts
Is this the expected behavior? I'm using rollup to generate a library and some xxx.d.ts files are missing. Wondering how to configure to generate them or if they are not expected to be generated.
The text was updated successfully, but these errors were encountered: