ts 5.2 made a breaking change titled "`module` and `moduleResolution` Must Match Under Recent Node.js settings"
which broke basically my entire script for cross-building the library for commonjs and esm
it was enough to put `--module commonjs` in tsc args, and it would *just work* :neocat_cry:
now to build for cjs i likely have to:
- set `"type": "commonjs"` in package.json
- run tsc
- revert package.json
...except it won't really work like that because i have a monorepo. so i'll have to set type=commonjs in every package.json
thanks typescript, very cool
might as well just ditch tsc and use rollup instead :neocat_googly_woozy: