Open sachaw opened 6 months ago
You should mark the needed types package as a peerDependency of the package you are importing. Re-exporting a type does not mean you pull the type into your package, re-exporting a type gives a nice API to reference said type.
Hi, My library: https://github.com/meshtastic/js bundles one of it's dependencies as it comes from another package registry, this part is working, however I need the dependencies types to also be bundled.
My library re-exports the dependency as follows:
The JS code is correctly bundled, but the generated .d.ts file still has an import from the original dependency that is not resolved when using the library:
Upvote & Fund