Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions www/apps/book/app/learn/configurations/ts-aliases/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The `baseUrl` option sets the base directory to `src/admin`, and the `paths` opt
Next, update the `vite` configuration in `medusa-config.ts` to include the `resolve.alias` configuration:

```ts title="medusa-config.ts"
import path from 'path'
import path from "path"

module.exports = defineConfig({
// ...
Expand Down Expand Up @@ -148,7 +148,7 @@ For example, if you set the `@/*` alias to point to `./components/*`:
Then, the `vite` alias configuration would be:

```ts title="medusa-config.ts"
import path from 'path'
import path from "path"

module.exports = defineConfig({
// ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ moduleIntegrationTestRunner<BlogModuleService>({
moduleModels: [Post],
resolve: "./src/modules/blog",
injectedDependencies: {
[Modules.EVENT_BUS]: new MockEventBusService()
[Modules.EVENT_BUS]: new MockEventBusService(),
},
testSuite: ({ service }) => {
describe("BlogModuleService", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
{
jsc: {
parser: { syntax: "typescript", decorators: true },
target: "es2021"
target: "es2021",
},
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const dataMigrationHighlights = [
]

```ts title="src/migration-scripts/migrate-blog-data.ts" highlights={dataMigrationHighlights}
import { MedusaModule } from "@medusajs/framework/modules-sdk";
import { ExecArgs } from "@medusajs/framework/types";
import { BLOG_MODULE } from "../modules/blog";
import { createWorkflow } from "@medusajs/framework/workflows-sdk";
import { MedusaModule } from "@medusajs/framework/modules-sdk"
import { ExecArgs } from "@medusajs/framework/types"
import { BLOG_MODULE } from "../modules/blog"
import { createWorkflow } from "@medusajs/framework/workflows-sdk"

export default async function migrateBlogData({ container }: ExecArgs) {
// Check that the blog module exists
Expand Down
Loading
Loading