fabien0102 / openapi-codegen

A tool for generating code base on an OpenAPI schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exact typescript version causes installed package size to be very large

nfm opened this issue · comments

In #89 it looks like the typescript version was bumped from "^4.6.2" to an exact version ("4.8.2"). It's unclear from the PR whether openapi-codegen requires that specific version of typescript but I suspect it does not.

The typescript package is ~65MB, and we now have three copies of it in our node_modules - one from our own package.json, one under node_modules/@openapi-codegen/typescript/node_modules, and one under node_modules/@openapi-codegen/cli/node_modules.

Would it be possible to relax the typescript dependency version to be looser, making it less likely that we'll end up with multiple copies of this package installed?

Fair enough, sadly since this package is using typescript AST API, and this API has some breaking changes, I need to update a lot of stuff to have it running with the latest version. So lack of time, I did fix the dependency 😉