From 4dc42aa044e4b9eee78ffb50afde50665c825244 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Fri, 24 Nov 2023 15:18:41 +0100 Subject: [PATCH] Define public-hoist-pattern for @chakra-ui Instead of adding dependencies we define public-hoist-pattern property for @chakra-ui/* packages. Read more on public-hoist-pattern here: https://pnpm.io/npmrc#public-hoist-pattern The fix was suggested in https://github.com/chakra-ui/chakra-ui/issues/6427#issuecomment-1269752794 --- dapp/.npmrc | 1 + dapp/package.json | 2 -- pnpm-lock.yaml | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) create mode 100644 dapp/.npmrc diff --git a/dapp/.npmrc b/dapp/.npmrc new file mode 100644 index 000000000..34bb1e5cb --- /dev/null +++ b/dapp/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=@chakra-ui/* diff --git a/dapp/package.json b/dapp/package.json index abe517062..e68ed741a 100644 --- a/dapp/package.json +++ b/dapp/package.json @@ -16,8 +16,6 @@ }, "dependencies": { "@chakra-ui/react": "^2.8.2", - "@chakra-ui/styled-system": "^2.9.2", - "@chakra-ui/theme-tools": "^2.1.2", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", "@ledgerhq/wallet-api-client": "^1.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5e48aef0..13e8b9df7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,12 +97,6 @@ importers: '@chakra-ui/react': specifier: ^2.8.2 version: 2.8.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.38)(framer-motion@10.16.5)(react-dom@18.2.0)(react@18.2.0) - '@chakra-ui/styled-system': - specifier: ^2.9.2 - version: 2.9.2 - '@chakra-ui/theme-tools': - specifier: ^2.1.2 - version: 2.1.2(@chakra-ui/styled-system@2.9.2) '@emotion/react': specifier: ^11.11.1 version: 11.11.1(@types/react@18.2.38)(react@18.2.0)