Separating types from the core #2837
olivermrbl
started this conversation in
Roadmap
Replies: 3 comments 6 replies
-
I'm new to medusa so I'm sorry if it's a dumb question, but which package should I install instead of "@medusajs/medusa" just for the types? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This would be awesome. This is the primary thing that scared me away from using medusa-js in my storefront app. The number of dependencies it would have introduced was overwhelming to me. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I will echo everybody above me, in that I am also looking for what package to install to avoid installing the full |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What
Leverage our OAS to generate types and ship them separately from the core
Motivation
Main motivation: Manually maintaining API clients is time-consuming and error-prone. Time that could be spent on more valuable efforts
Secondary motivation: Reduce direct imports from Medusa core package in clients and apps. These direct imports sometimes have side effects, likes pulling unnecessary dependencies into clients and apps.
Beta Was this translation helpful? Give feedback.
All reactions