revoltchat / revolt.js

Modern Typescript library for interacting with Revolt.
https://revolt.js.org
MIT License
216 stars 54 forks source link

fix: allow explicit ESM import #84

Closed williamhorning closed 1 month ago

williamhorning commented 1 year ago

This pull request fixes #83 by updating the build step to add a package.json to the lib/esm directory when building to allow people to explicitly import the ESM version when using something like Deno. It also updates all directory imports, making them explicitly import index.js so they don't throw ERR_UNSUPPORTED_DIR_IMPORT errors. This also fixes the issues fixed by #80.

williamhorning commented 4 months ago

@insertish would you please take a look at this when you get the chance?