ferdikoomen / openapi-typescript-codegen

NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
MIT License
2.88k stars 520 forks source link

NodeNext moduleResolution support #1940

Open i0000010 opened 9 months ago

i0000010 commented 9 months ago

I'm using esmodules with moduleResolution set to NodeNext. This means relative import paths require explicit file extensions. Is there a way to configure this requirement out of the box?

wydengyre commented 7 months ago

This is also true for node16 module resolution, which is identical. Related issue is here: https://github.com/ferdikoomen/openapi-typescript-codegen/issues/1964

I see no reason not to just make explicit file extensions the default. Is there any advantage to not having them?