openapi-typescript-fetch icon indicating copy to clipboard operation
openapi-typescript-fetch copied to clipboard

fix extension of output files

Open javiertury opened this issue 3 years ago • 2 comments
trafficstars

Declares the package type as module and uses .cjs extension for CommonJS files.

Fixes #41

javiertury avatar Jul 23 '22 14:07 javiertury

@ajaishankar @hpohlmeyer @javiertury @XMLHexagram can you review this and other pull requests?

stelmakhivan avatar Aug 16 '22 13:08 stelmakhivan

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.

Rendez avatar Apr 20 '23 09:04 Rendez