Skip to content

Commit

Permalink
🏗️ build(pnpm): update pnpm to 9 and fix docs (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmAzing129 authored Sep 2, 2024
1 parent 9679ff5 commit 8cc9646
Show file tree
Hide file tree
Showing 5 changed files with 12,265 additions and 9,439 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9

- uses: afc163/surge-preview@v1
id: preview_step
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9

- name: Setup Node.js environment
uses: actions/setup-node@v3
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,11 @@ To install `@ant-design/pro-chat`, run the following command:
$ pnpm install @ant-design/pro-chat
```

This project is based on `antd` `antd-style`, so if you have not installed these two dependencies, please install them.

```bash
$ pnpm install antd-style // peerDependencies
$ pnpm install antd // peerDependencies
```
The default `auto-install-peers` in pnpm is `true`. If you use other package managers, you may need to install `antd` and `antd-style` separately.

### Compile with Next.js

If you have some errors when using Next.js, check [here](https://pro-chat.antdigital.dev/en-US/guide/nextjs#frequently-asked-questions]).
If you have some errors when using Next.js, check [here](https://pro-chat.antdigital.dev/en-US/guide/nextjs#frequently-asked-questions).

## 🔨 Usage

Expand Down
9 changes: 2 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@
$ pnpm install @ant-design/pro-chat
```

这个项目基于 `antd` `antd-style`,所以你还没安装过这两个依赖,也请安装一下。

```bash
$ pnpm install antd-style // peerDependencies
$ pnpm install antd // peerDependencies
```
pnpm 默认 auto-install-peers 为 true,如果使用其他包管理工具,可能需要再安装 `antd` `antd-style`

### 使用 Next.js 进行编译

如果在 Next.js 项目中遇到一些报错,请参考这里[解决](https://pro-chat.antdigital.dev/guide/nextjs#常见问题]).
如果在 Next.js 项目中遇到一些报错,请参考这里[解决](https://pro-chat.antdigital.dev/guide/nextjs#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98).

## 🔨 使用

Expand Down
Loading

0 comments on commit 8cc9646

Please sign in to comment.