Replies: 1 comment 1 reply
-
any updates on this @moltar. Trying to do the same thing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I want to re-package and re-publish some types from an external npm package, but not have it be in the
dependencies
.The solution on the TS code side is quite easy:
But how do I configure
tsup
to bundle the types, rather than import them in the final built asset?In effect, this is like bundling all third-party code. I know
esbuild
is capable of that. Just not sure how to do it intsup
.More details:
The use case is that I want to create a helper package for a third-party package, but do not want to have to force the user to install the actual third-party package, because it's very heavy (10 MB). I am talking about
renovate
, which is in effect a whole application. I am working on a tool that helps manage Renovate configuration, which can be shared, but it does not need the entirerenovate
baggage. Most users will use the Renovate Bot GitHub Action anyway and just need a single.json
file in the end.Beta Was this translation helpful? Give feedback.
All reactions