openapi-typescript-fetch
openapi-typescript-fetch copied to clipboard
fix extension of output files
trafficstars
Declares the package type as module and uses .cjs extension for CommonJS files.
Fixes #41
@ajaishankar @hpohlmeyer @javiertury @XMLHexagram can you review this and other pull requests?
I believe - correct me if I'm wrong - that this will fail if your project is type=commonjs and you try to require the .cjs entrypoint, because this project is read as type=module by the node resolution.
I've addressed this on my PR: https://github.com/ajaishankar/openapi-typescript-fetch/pull/59, because I even saw your PR.