feat(): Auto generated types generation upon build (#14337)

* feat(): Auto generated types generation upon build

* Create happy-steaks-cheer.md

* test(): default types true

* improvements

* improvements

* improvements

* improvements

* improvements
This commit is contained in:
Adrien de Peretti
2025-12-19 10:13:17 +01:00
committed by GitHub
parent 125694626e
commit 181d5fa671
5 changed files with 104 additions and 6 deletions

View File

@@ -308,6 +308,11 @@ export type MedusaAppOptions = {
* Forces the modules bootstrapper to only run the modules loaders and return prematurely
*/
loaderOnly?: boolean
/**
* Only partially load modules to retrieve their joiner configs without running loaders.
* Useful for type generation and migrations.
*/
migrationOnly?: boolean
cwd?: string
}
@@ -325,9 +330,7 @@ async function MedusaApp_({
loaderOnly = false,
workerMode = "shared",
cwd = process.cwd(),
}: MedusaAppOptions & {
migrationOnly?: boolean
} = {}): Promise<MedusaAppOutput> {
}: MedusaAppOptions = {}): Promise<MedusaAppOutput> {
const sharedContainer_ = createMedusaContainer({}, sharedContainer)
const config = sharedContainer_.resolve(