seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

fix: Add index.cjs to accepted imports #161

Closed louis-pre closed 1 month ago

louis-pre commented 1 month ago

Context

https://github.com/seamapi/edgespec/pull/160

Missed this, importing from edgespec and also from edgespec/dist/middleware/index.cjs causes type conflicts. The edgespec import actually gets its types from the ESM types (not sure why) while the .cjs import gets its types from the CJS types. I will convert my imports to edgespec/dist/index.cjs for now

Changes