Examples and Docs clash #10325
-
SummaryHiya, been digging through the docs and examples and there seem to be some clashing concepts and I am not sure what is the actual source of truth. In examples for internal packages you use bunchee to output .js and .d.ts files and in exports you point to dist files. But in the documentation you state that for internal packages it’s best to use tsc and point the types export to the source file. Which is the correct and optimal approach? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Both approaches are correct and situational. It is indeed simplest to use Can you point to the parts of the docs that you're finding confusing? Happy to make some updates to clarify. |
Beta Was this translation helpful? Give feedback.
There isn't a singular way to do these things. Folks tend to have different opinions and preferences for the tradeoffs involved.
In the case of TypeScript's Project References, we don't recommend them but that comes with the tradeoff that you're describing.