Skip to content

Commit

Permalink
chore: specify npm as the package manager (ant-design#42611)
Browse files Browse the repository at this point in the history
* chore: specify npm as the package manager

* chore: update version

* Update package.json

Co-authored-by: afc163 <[email protected]>

---------

Co-authored-by: afc163 <[email protected]>
  • Loading branch information
Dunqing and afc163 authored May 25, 2023
1 parent 03a7374 commit c3364cf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
6 changes: 6 additions & 0 deletions docs/react/contributing.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Since antd's components are based on react-component, sometimes you may need to

## Development Workflow

Before you can start you must run the following command to enable [corepack](https://nodejs.org/api/corepack.html)

```bash
corepack enable
```

After cloning antd, run `npm install` to fetch its dependencies. Then, you can run several commands:

1. `npm start` runs Ant Design website locally.
Expand Down
6 changes: 6 additions & 0 deletions docs/react/contributing.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Ant Design 团队会关注所有的 pull request,我们会 review 以及合并

## 开发流程

在开始之前,请先执行下面的命令启用 [corepack](https://nodejs.org/api/corepack.html)

```bash
corepack enable
```

在你 clone 了 antd 的代码并且使用 `npm install` 安装完依赖后,你还可以运行下面几个常用的命令:

1. `npm start` 在本地运行 Ant Design 的网站。
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "antd",
"version": "5.5.1",
"packageManager": "^[email protected]",
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
"keywords": [
Expand Down

0 comments on commit c3364cf

Please sign in to comment.