chore(): Reorganize modules (#7210)
**What** Move all modules to the modules directory
This commit is contained in:
committed by
GitHub
parent
7a351eef09
commit
4eae25e1ef
12
packages/modules/event-bus-local/src/initialize/index.ts
Normal file
12
packages/modules/event-bus-local/src/initialize/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { MedusaModule, Modules } from "@medusajs/modules-sdk"
|
||||
import { IEventBusService } from "@medusajs/types"
|
||||
|
||||
export const initialize = async (): Promise<IEventBusService> => {
|
||||
const serviceKey = Modules.EVENT_BUS
|
||||
const loaded = await MedusaModule.bootstrap<IEventBusService>({
|
||||
moduleKey: serviceKey,
|
||||
defaultPath: "@medusajs/event-bus-local",
|
||||
})
|
||||
|
||||
return loaded[serviceKey]
|
||||
}
|
||||
Reference in New Issue
Block a user