Skip to content

Commit

Permalink
docs: fix preserve-symlink command for yarn in plugin docs (medusajs#…
Browse files Browse the repository at this point in the history
…5285)

* docs: fix preserve-symlink command for yarn in plugin docs

* added additional tab

* fix npm label
  • Loading branch information
shahednasser authored Oct 4, 2023
1 parent 6d9c0eb commit 0b4e7ef
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions www/apps/docs/content/development/plugins/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ addHowToData: true
import DocCardList from '@theme/DocCardList';
import Icons from '@theme/Icon';
import LearningPath from '@site/src/components/LearningPath';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# How to Create a Plugin

Expand Down Expand Up @@ -521,9 +523,36 @@ npx medusa migrations run

In the directory of the Medusa backend, start the backend with the `dev` command passing it the `--preserve-symlinks` option:

```bash npm2yarn
npm run dev -- -- --preserve-symlinks
```
<Tabs groupId="npm2yarn" isCodeTabs={true}>
<TabItem value="npm" label="npm" default>

```bash
npm run dev -- -- --preserve-symlinks
```

</TabItem>
<TabItem value="yarn-1" label="Yarn v1">

```bash
yarn dev -- -- --preserve-symlinks
```

</TabItem>
<TabItem value="yarn-berry" label="Yarn berry">

```bash
yarn dev -- --preserve-symlinks
```

</TabItem>
<TabItem value="pnpm" label="pnpm">

```bash
pnpm run dev -- -- --preserve-symlinks
```

</TabItem>
</Tabs>

### Making Changes to the Plugin

Expand Down

0 comments on commit 0b4e7ef

Please sign in to comment.