Skip to content

Commit

Permalink
Update Hoisted dependencies step in installation.mdx
Browse files Browse the repository at this point in the history
Added extra information about hoisted pnpm packages.
Because without prior knowledge about hoisting you may end up with broken Prettier and EsLint. 
Read more here: pnpm/pnpm#8878
  • Loading branch information
J4v4Scr1pt authored Jan 17, 2025
1 parent 85913a8 commit 64ab4cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/docs/content/docs/guide/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ If you are using pnpm, you need to add the following line to your `.npmrc` file
```bash
public-hoist-pattern[]=*@heroui/*
```
If you are using Prettier and/or EsLint include them accordingly.

```bash
public-hoist-pattern[]=*@heroui/*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
```

After modifying the `.npmrc` file, you need to run `pnpm install` again to ensure that the dependencies are installed correctly.

Expand Down

0 comments on commit 64ab4cd

Please sign in to comment.