feat(providers): locking redis (#9544)

This commit is contained in:
Carlos R. L. Rodrigues
2024-10-15 12:40:24 -03:00
committed by GitHub
parent e77a2ff032
commit 4a03bdbb86
49 changed files with 1764 additions and 483 deletions

View File

@@ -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"

View 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,
}
}