From 64ab4cdffad4995fe4c7c655af1cf45f1a238ea0 Mon Sep 17 00:00:00 2001 From: Js4 Date: Fri, 17 Jan 2025 06:29:36 +0100 Subject: [PATCH] Update Hoisted dependencies step in installation.mdx 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: https://github.com/pnpm/pnpm/issues/8878 --- apps/docs/content/docs/guide/installation.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/docs/content/docs/guide/installation.mdx b/apps/docs/content/docs/guide/installation.mdx index 738dfaa104..9c0fae5a49 100644 --- a/apps/docs/content/docs/guide/installation.mdx +++ b/apps/docs/content/docs/guide/installation.mdx @@ -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.