Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏗️ build(pnpm): update pnpm to 9 and fix docs #313

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading