add-js-to-esm-modules
goal
add .js to local imports/exports so they can be used directly as esm modules
why
cause typescript does not add the extensions:
see: https://github.com/microsoft/TypeScript/issues/40878 annd a pull: https://github.com/microsoft/TypeScript/pull/47436
thanks
basic script is from https://gist.github.com/lovasoa/8691344