diff --git a/www/utils/packages/typedoc-generate-references/src/constants/custom-options.ts b/www/utils/packages/typedoc-generate-references/src/constants/custom-options.ts index 983843030b356..3b2c955d1de84 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/custom-options.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/custom-options.ts @@ -62,7 +62,7 @@ const customOptions: Record> = { ], }), "medusa-config": getOptions({ - entryPointPath: "packages/frameworksrc/config/types.ts", + entryPointPath: "packages/framework/src/config/types.ts", tsConfigName: "framework.json", name: "medusa-config", }), diff --git a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/auth-provider.ts b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/auth-provider.ts index dab3231b3bfc4..5d1ea38959ecb 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/auth-provider.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/auth-provider.ts @@ -39,10 +39,14 @@ Create the file \`src/modules/my-auth/index.ts\` with the following content: \`\`\`ts title="src/modules/my-auth/index.ts" import MyAuthProviderService from "./service" +import { + ModuleProvider, + Modules +} from "@medusajs/framework/utils" -export default { +export default ModuleProvider(Modules.AUTH, { services: [MyAuthProviderService], -} +}) \`\`\` This exports the module's definition, indicating that the \`MyAuthProviderService\` is the module's service.`, diff --git a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/file.ts b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/file.ts index 7b00109fe97aa..3769bb07f75ef 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/file.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/file.ts @@ -39,10 +39,14 @@ Create the file \`src/modules/my-file/index.ts\` with the following content: \`\`\`ts title="src/modules/my-file/index.ts" import MyFileProviderService from "./service" +import { + ModuleProvider, + Modules +} from "@medusajs/framework/utils" -export default { +export default ModuleProvider(Modules.FILE, { services: [MyFileProviderService], -} +}) \`\`\` This exports the module's definition, indicating that the \`MyFileProviderService\` is the module's service.`, diff --git a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/fulfillment-provider.ts b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/fulfillment-provider.ts index 434ed68f7c80f..7663d80faba57 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/fulfillment-provider.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/fulfillment-provider.ts @@ -39,10 +39,14 @@ Create the file \`src/modules/my-fulfillment/index.ts\` with the following conte \`\`\`ts title="src/modules/my-fulfillment/index.ts" import MyFulfillmentProviderService from "./service" +import { + ModuleProvider, + Modules +} from "@medusajs/framework/utils" -export default { +export default ModuleProvider(Modules.FULFILLMENT, { services: [MyFulfillmentProviderService], -} +}) \`\`\` This exports the module's definition, indicating that the \`MyFulfillmentProviderService\` is the module's service.`, diff --git a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/notification.ts b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/notification.ts index f83fe0dd2d1db..56a3adbb53b37 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/notification.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/notification.ts @@ -43,10 +43,14 @@ Create the file \`src/modules/my-notification/index.ts\` with the following cont \`\`\`ts title="src/modules/my-notification/index.ts" import MyNotificationProviderService from "./service" +import { + ModuleProvider, + Modules +} from "@medusajs/framework/utils" -export default { +export default ModuleProvider(Modules.NOTIFICATION, { services: [MyNotificationProviderService], -} +}) \`\`\` This exports the module's definition, indicating that the \`MyNotificationProviderService\` is the module's service.`, diff --git a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/payment-provider.ts b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/payment-provider.ts index 842ea16cd3223..2ac8147d1180d 100644 --- a/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/payment-provider.ts +++ b/www/utils/packages/typedoc-generate-references/src/constants/merger-custom-options/payment-provider.ts @@ -48,10 +48,14 @@ Create the file \`src/modules/my-payment/index.ts\` with the following content: \`\`\`ts title="src/modules/my-payment/index.ts" import MyPaymentProviderService from "./service" +import { + ModuleProvider, + Modules +} from "@medusajs/framework/utils" -export default { +export default ModuleProvider(Modules.PAYMENT, { services: [MyPaymentProviderService], -} +}) \`\`\` This exports the module's definition, indicating that the \`MyPaymentProviderService\` is the module's service.`,