pgtyped icon indicating copy to clipboard operation
pgtyped copied to clipboard

Isolate runtime-only dependencies into their own package

Open adelsz opened this issue 5 years ago • 2 comments

It would be nice to move runtime query dependencies into a separate package. Currently @pgtyped/query has both runtime and compile time logic in it.

adelsz avatar May 30 '20 22:05 adelsz

@adelsz is there a way we could help out with this piece of work? My team is looking at ways to reduce the size of dependencies for our lambdas, and typescript via pgtyped is one of the larger ones.

gregplaysguitar avatar Oct 12 '21 20:10 gregplaysguitar

+1 I just found out that for some of my apps, typescipt alone is bigger that the rest of production node_modules combined, resulting in a 200MB+ docker image. this is especially bad because I only have queries in sql files

any plans on this?

m-ronchi avatar Apr 01 '22 08:04 m-ronchi

@adelsz from investigation here it seems that typescript is no longer a dependency of @pgtyped/query, so looks like this is resolved - so I think it can be closed?

gregplaysguitar avatar Jan 10 '23 02:01 gregplaysguitar

This has been fixed as part of our migration to ESM.

adelsz avatar Jan 28 '23 17:01 adelsz