fix: load custom modules by path (#6312)

What:
medusa-config.js loading custom modules by their path.

```typescript
{
  modules: {
    internalModule: {
      scope: MODULE_SCOPE.INTERNAL,
      resources: MODULE_RESOURCE_TYPE.SHARED,
      resolve: "./internal_module",
      definition: {
        key: "internalModule",
        registrationName: "internalModule",
      },
    },
  }
}
```
This commit is contained in:
Carlos R. L. Rodrigues
2024-02-04 14:26:34 +00:00
committed by GitHub
parent 58baead34e
commit 96ba49329b
13 changed files with 14 additions and 35 deletions
@@ -5,7 +5,6 @@ export const InventoryModule = {
defaultPackage: false,
label: "InventoryService",
isRequired: false,
canOverride: true,
isQueryable: true,
dependencies: [],
defaultModuleDeclaration: {
@@ -4,7 +4,6 @@ export const InventoryStockLocationLink = {
registrationName: "inventoryStockLocationLink",
defaultPackage: "",
label: "inventoryStockLocationLink",
canOverride: true,
isRequired: false,
isQueryable: true,
defaultModuleDeclaration: {
@@ -4,7 +4,6 @@ export const ProductInventoryLinkModule = {
registrationName: "productVariantInventoryInventoryItemLink",
defaultPackage: "",
label: "productVariantInventoryInventoryItemLink",
canOverride: true,
isRequired: false,
isQueryable: true,
defaultModuleDeclaration: {
@@ -5,7 +5,6 @@ export const ProductModule = {
defaultPackage: false,
label: "ProductModuleService",
isRequired: false,
canOverride: true,
isQueryable: true,
dependencies: ["eventBusModuleService"],
defaultModuleDeclaration: {
@@ -5,7 +5,6 @@ export const StockLocationModule = {
defaultPackage: false,
label: "StockLocationService",
isRequired: false,
canOverride: true,
isQueryable: true,
dependencies: ["eventBusService"],
defaultModuleDeclaration: {