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.
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 importindex.js
so they don't throwERR_UNSUPPORTED_DIR_IMPORT
errors. This also fixes the issues fixed by #80.test.mjs
)