Closed thomasballinger closed 2 weeks 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.
Closing, since esm seems fine for us for now
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.