Why are we not generating the .medusa/types
folder in production mode ?
#12466
-
Hi team! I have a quick question. I was wondering why we aren't generating the types when executing the // ℹ️ Before V2.5.0, we were used to explicitly cast modules like this
import { BLOG_MODULE } from "../../modules/blog"
import type BlogModuleService from "../../modules/blog/service"
// ...
const blogModuleService = container.resolve<BlogModuleService>(BLOG_MODULE) // ✅ After V2.5.0, we can count on the `modules-bindings.d.ts` file type inference to get the right type
import { BLOG_MODULE } from "../../modules/blog"
// ...
const blogModuleService = container.resolve(BLOG_MODULE) However, when building for production, if the necessary Just wanted to know the reasoning behind this and what about having some new CLI options to generate the types, to make sure to continue to offer this improvement at the DX level without it being ultimately punished at the time of the build in prod |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @adevinwild Yes, this has to be fixed. Lemme look into it in the coming days 💪 |
Beta Was this translation helpful? Give feedback.
Hello @adevinwild
Yes, this has to be fixed. Lemme look into it in the coming days 💪