Skip to content

Commit a2f3a75

Browse files
authored
docs(bezier-react): update installation section (#1701)
## Self Checklist - [x] I wrote a PR title in **English** and added an appropriate **label** to the PR. - [x] I wrote the commit message in **English** and to follow [**the Conventional Commits specification**](https://www.conventionalcommits.org/en/v1.0.0/). - [x] I [added the **changeset**](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) about the changes that needed to be released. (or didn't have to) - [x] I wrote or updated **documentation** related to the changes. (or didn't have to) - [x] I wrote or updated **tests** related to the changes. (or didn't have to) - [x] I tested the changes in various browsers. (or didn't have to) - Windows: Chrome, Edge, (Optional) Firefox - macOS: Chrome, Edge, Safari, (Optional) Firefox ## Summary <!-- Please brief explanation of the changes made --> 설치할 의존성의 목록을 업데이트 했습니다. ## Details <!-- Please elaborate description of the changes --> `@types/styled-components` 라이브러리가 설치되어 있지 않은 경우, styled 를 import 하는 경우에 타입이 any로 추론되는 문제가 발생합니다. ![image](https://github.com/channel-io/bezier-react/assets/42037851/65ec073d-3bee-4311-b4b8-80f36a4dc976) 본 PR은 이 문제를 해결하는 방법중 하나를 제시합니다. 장기적으로는, 해당 의존성을 설치하지 않아도 되도록 install 과정에서 자동으로 의존성을 추가하도록 하여야 합니다. ### Breaking change? (Yes/No) <!-- If Yes, please describe the impact and migration path for users --> No ## References <!-- Please list any other resources or points the reviewer should be aware of -->
1 parent 572ac77 commit a2f3a75

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/bezier-react/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ Bezier React is a React components library that implements Bezier design system.
77
### npm
88

99
```bash
10-
npm i @channel.io/bezier-react styled-components
10+
npm i @channel.io/bezier-react styled-components@5
11+
npm i -D @types/styled-components@5
1112
```
1213

1314
### yarn
1415

1516
```bash
16-
yarn add @channel.io/bezier-react styled-components
17+
yarn add @channel.io/bezier-react styled-components@5
18+
yarn add -D @types/styled-components@5
19+
```
20+
21+
### pnpm
22+
23+
```bash
24+
pnpm install @channel.io/bezier-react styled-components@5
25+
pnpm install -D @types/styled-components@5
1726
```
1827

1928
**bezier-react has [styled-components](https://styled-components.com/) as peer dependency** so don't forget to install it.

0 commit comments

Comments
 (0)