feat(providers): locking redis (#9544)
This commit is contained in:
committed by
GitHub
parent
e77a2ff032
commit
4a03bdbb86
@@ -15,6 +15,7 @@ export * from "./medusa-service"
|
||||
export * from "./migration-scripts"
|
||||
export * from "./mikro-orm-cli-config-builder"
|
||||
export * from "./module"
|
||||
export * from "./module-provider"
|
||||
export * from "./query-context"
|
||||
export * from "./types/links-config"
|
||||
export * from "./types/medusa-service"
|
||||
|
||||
19
packages/core/utils/src/modules-sdk/module-provider.ts
Normal file
19
packages/core/utils/src/modules-sdk/module-provider.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ModuleProviderExports } from "@medusajs/types"
|
||||
|
||||
/**
|
||||
* Wrapper to build the module provider export
|
||||
*
|
||||
* @param serviceName // The name of the module the provider is for
|
||||
* @param services // The array of services that the module provides
|
||||
* @param loaders // The loaders that the module provider provides
|
||||
*/
|
||||
export function ModuleProvider(
|
||||
serviceName: string,
|
||||
{ services, loaders }: ModuleProviderExports
|
||||
): ModuleProviderExports {
|
||||
return {
|
||||
module: serviceName,
|
||||
services,
|
||||
loaders,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user