fix: Add schema only flag on Medusa app loader (#14502)

* fix(build): Introduce a schema only flag for more heavy light weight loading

* fix(build): cleanup and tests

* Create shy-snails-raise.md

* fix(build): cleanup
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2026-01-09 12:21:28 +01:00
1 parent 66f8fe084c
commit 233ec261be
9 files changed
+243 -20

No files matched your search

@@ -41,7 +41,7 @@ export async function generateTypes({
const { gqlSchema, modules } = await new MedusaAppLoader().load({
registerInContainer: false,
migrationOnly: true,
schemaOnly: true,
})
const typesDirectory = path.join(directory, ".medusa/types")