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
don't work with pnpm and turborepo #269
Comments
Can you share the repro? |
It's a private startup project so I can't but maybe I can try to make a minimal repro starting from turborepo examples |
Yes please, it would be helpful. Otherwise it's hard to tell what's exactly wrong. |
Ok here we go: https://github.com/yovanoc/dts-repro
the generated api.d.ts don't include StaticType from packages/external-types even if we add |
Hey @yovanoc, thanks for the repro. How does it work for you? I just opened your repro and vscode also highlights the same issue as the tool generates:
|
It seems that you're using composite projects that aren't supported right now (#93). As a workaround you can create a separate tsconfig for the tool that will include all needed files (basically just don't restrict any folders), something like this:
works fine:
|
Feel free to post any updates if it is not the only issue you're experiencing. |
oh thanks for the info I think it should be written in the readme.. but when I do that on the real project I get |
Make sure skibLibCheck is disabled. Can you provide a repro? |
Can we talk in PM somewhere that I give you access to the repo? |
Sure. Pls email me at timocov@gmail.com |
I don't know if its a bug or if I don't understand something but I can't find a way to make my use case working.
It appears that inside my turborepo monorepo, and using pnpm, dts-bundle-generator can't bring types from other packages.
I got a lot of
error TS2304: Cannot find name XXX
with XXX being types from other packages. I tried --external-inlines with these packages and changing --disable-symlinks-following but none of these works. What should I try?thanks
edit: it appears that if I do relative imports like
../../../../../../packages
it works with dts-bundle-generator. but can't build my project.The text was updated successfully, but these errors were encountered: