You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use dts-bundle to export a bundle as a module library. I am re-exporting all the exports from another file, and while this works without bundling it doesn't seem to when bundled.
My question is really 2-fold.
Is this a gap/bug in the dts-bundle library?
What should the bundle.d.ts look like?
This is my minimal example. Consider I am trying to publish an 'animals' npm package. It's very simple consisting of the following.
Hi,
I am trying to use dts-bundle to export a bundle as a module library. I am re-exporting all the exports from another file, and while this works without bundling it doesn't seem to when bundled.
My question is really 2-fold.
This is my minimal example. Consider I am trying to publish an 'animals' npm package. It's very simple consisting of the following.
mammals.ts
index.ts
I want to use it as follows within some other code in another module somewhere
zoo.ts
If you create a bundle this using the command
You get the file
bundle.d.ts
which leads to a typescript error 'Cannot find name mammals'
The initial d.ts files look like this:-
mammals.d.ts
index.d.ts
The text was updated successfully, but these errors were encountered: