diff --git a/www/apps/book/app/basics/data-models/page.mdx b/www/apps/book/app/basics/data-models/page.mdx index 43eeb2d997..bc1ecd2f33 100644 --- a/www/apps/book/app/basics/data-models/page.mdx +++ b/www/apps/book/app/basics/data-models/page.mdx @@ -121,10 +121,9 @@ The queries performed in each of the methods use PostgreSQL syntax. ### Run Migration -To reflect the changes in the migration, transpile your source files using the `build` command, then run the `migration` command: +To reflect the changes in the migration, run the `migration` command: ```bash npm2yarn -npm run build npx medusa migrations run ``` 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 bb314dd414..f6223723d3 100644 --- a/www/apps/book/app/basics/modules-and-services/page.mdx +++ b/www/apps/book/app/basics/modules-and-services/page.mdx @@ -75,13 +75,7 @@ module.exports = defineConfig({ Its key (`helloModuleService`) is the name of the module’s main service. It will be registered in the Medusa container with that name. -Its value is an object having the `resolve` property, whose value is either a path to the directory holding the module or an `npm` package’s name. - - - -When you run the `build` or `dev` command, your customizations are transpiled from the `src` directory into the `dist` directory. So, you point to the module in the `dist` directory. - - +Its value is an object having the `resolve` property, whose value is either a path to module's directory (relative to `src`, so it shouldn't include `src` in the path) or an `npm` package’s name. ### 4. Test the Module 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 e890007cb1..2ea712ab40 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 @@ -63,7 +63,7 @@ module.exports = defineConfig({ options: { providers: [ { - resolve: "./dist/modules/my-fulfillment", + resolve: "./modules/my-fulfillment", options: { config: { "my-fulfillment": { 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 b1eb1119bf..4e723766da 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 @@ -78,7 +78,7 @@ module.exports = defineConfig({ options: { providers: [ { - resolve: "./dist/modules/my-notification", + resolve: "./modules/my-notification", options: { config: { "my-notification": {