feat(medusa-app): Link initialization should respect migrationOnly flag (#14493)
* feat(medusa-app): Link initialization should respect migrationOnly flag * Create cyan-taxis-behave.md
This commit is contained in:
committed by
GitHub
parent
568742826f
commit
bb599a26de
@@ -34,7 +34,8 @@ export const initialize = async (
|
||||
| InternalModuleDeclaration,
|
||||
pluginLinksDefinitions?: ModuleJoinerConfig[],
|
||||
injectedDependencies?: InitializeModuleInjectableDependencies,
|
||||
cwd?: string
|
||||
cwd?: string,
|
||||
migrationOnly?: boolean
|
||||
): Promise<{ [link: string]: ILinkModule }> => {
|
||||
const allLinks = {}
|
||||
const modulesLoadedKeys = MedusaModule.getLoadedModules().map(
|
||||
@@ -170,6 +171,7 @@ export const initialize = async (
|
||||
moduleExports: moduleDefinition,
|
||||
injectedDependencies,
|
||||
cwd,
|
||||
migrationOnly,
|
||||
})
|
||||
|
||||
allLinks[serviceKey as string] = Object.values(loaded)[0]
|
||||
|
||||
Reference in New Issue
Block a user