typeorm-factory
typeorm-factory copied to clipboard
CJS build
Heyhey, I know ESM is the cool guy out there, but there are tools which easily allow to provide ESM as well as CJS (e.g. microbundle). This should also solve #169
The problem is: This package is mostly used for testing, and many test environments are running with jest. And ESM is a pain with jest. I know about e.g. transformIgnorePatterns but that slows down the tests and, well, it is just not necessary.
So is it possible to get a CJS (bundle) as well?
Can you try if the package under next label is working with CJS?
pnpm add -D @jorgebodega/typeorm-factory@next
Works perfect! However, now there is no ESM build anymore, right? Why not providing both?