earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
632 stars 20 forks source link

Use external superbus, superbus-map #217

Closed sgwilym closed 1 year ago

sgwilym commented 2 years ago

What's the problem you want solved?

Currently both superbus and superbus-map have been inlined into the codebase. This is because the versions imported via esm.sh / skypack.dev do not export their types correctly.

Is there a solution you'd like to recommend?

I've not been able to work out why neither of these libraries are exporting their types correctly, they seem to be doing everything correctly. Another possibility is to make them standard Deno modules and have their NPM distribution handled with dnt, but that's a bit more work.