From bb0fcbad7bd5d09cca7c919ca832155bd0d74cf6 Mon Sep 17 00:00:00 2001 From: Ray Quijada Date: Mon, 26 Aug 2024 15:53:52 +0800 Subject: [PATCH] docs(ui): update 3.4 Modules & Services v2 documentation (#8751) * chore: update 3.4 Modules and Services v2 documentation explicitly mentioned `service.ts` requirement in 3.4 guide from 3.6 Content from: https://docs.medusajs.com/v2/basics/modules-directory-structure#servicets * chore: add missing dot --------- Co-authored-by: Shahed Nasser --- www/apps/book/app/basics/modules-and-services/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/apps/book/app/basics/modules-and-services/page.mdx b/www/apps/book/app/basics/modules-and-services/page.mdx index f8bc3ad9cc..207c704d4c 100644 --- a/www/apps/book/app/basics/modules-and-services/page.mdx +++ b/www/apps/book/app/basics/modules-and-services/page.mdx @@ -30,7 +30,7 @@ For example, create the directory `src/modules/hello`. ### 1. Create Main Service -A module must define a service. A service is a TypeScript or JavaScript class holding methods related to a business logic or commerce functionality. +A module must define a service. A service is a TypeScript or JavaScript class holding methods related to a business logic or commerce functionality. It must be defined at the root of your module directory under `service.ts` filename. For example, create the file `src/modules/hello/service.ts` with the following content: