get-convex / convex-helpers

A collection of useful code to complement the official packages.
MIT License
66 stars 9 forks source link

Dual package #89

Closed thomasballinger closed 2 weeks ago

thomasballinger commented 3 months ago

Compile ESM and CJS builds and types and use exports to point to them.

This resolves the warnings here and makes ts-jest work in https://github.com/get-convex/convex-chess/pull/19/files without adding the exception not to compile these files.

I'm not sure this needs to be a dual package though. If we could get away with ESM-only the build would be simpler. That's the way we should recommend developers build things in Convex.

ianmacartney commented 2 weeks ago

Closing, since esm seems fine for us for now