docs: highlight fixes (#8094)

This commit is contained in:
Shahed Nasser
2024-07-11 19:15:50 +03:00
committed by GitHub
parent ac416e99a1
commit d8f58774df
2 changed files with 4 additions and 3 deletions

View File

@@ -58,12 +58,13 @@ A migration is a class created in a TypeScript or JavaScript file under a module
1. Create the file `src/modules/hello/migrations-config.ts` with the following content:
```ts highlights={[["7", '"medusa-hello"', "Use any database name relevant for your module."]]}
```ts
import { defineMikroOrmCliConfig } from "@medusajs/utils"
import path from "path"
import MyCustom from "./models/my-custom"
import { HELLO_MODULE } from "."
export default defineMikroOrmCliConfig("hello", {
export default defineMikroOrmCliConfig(HELLO_MODULE, {
entities: [MyCustom] as any[],
migrations: {
path: path.join(__dirname, "migrations"),

View File

@@ -48,7 +48,7 @@ A module must have an `index.ts` file in its root directory that exports its def
For example, create the file `src/modules/hello/index.ts` with the following content:
```ts title="src/modules/hello/index.ts" highlights={[["5", "", "The main service of the module."]]}
```ts title="src/modules/hello/index.ts" highlights={[["7", "", "The main service of the module."]]}
import HelloModuleService from "./service"
import { Module } from "@medusajs/utils"