Add CommonJS exports according to ESM exports in Typescript files
This is useful for when you are trying to work in a project that has JS and TS mixed together and you want them to work nicely without breaking your head configuring the right tsconfig.
Usage
Run node bin/global.js {{directory}}