Skip to content

Commit

Permalink
docs: nvm alias is not necessary if .nvmrc is used
Browse files Browse the repository at this point in the history
  • Loading branch information
tyn1998 committed Jun 13, 2023
1 parent a4b7973 commit e329fdc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@
| packages/gi-portal | `-` | G6VP 首页 |
| packages/gi-httpservice | `@antv/gi-httpservices` | G6VP BFF 服务 |

### 02 进入到每个子包中启动,遇到依赖找不到的问题

注意 ⚠️: cd 到每个子包的目录时候,一定要注意查看 node 的版本,比如我的默认 node 版本是 12, 切换到 16 装完所有依赖,此时进入到每个子包中, node 的版本自动切换到 12,执行命令是找不到安装的依赖的,所以得重新 `nvm use 16`,这样就可以了,如果想一劳永逸,可以在 zsh terminal 中设置

```bash
nvm alias default v16.17.0
```

### 03 如何发布版本
### 02 如何发布版本

G6VP 采用 [changesets](https://pnpm.io/using-changesets) 来进行包版本管理和发布,因此不需要手动维护版本号,只需要在提交代码时,使用`pnpm run changeset`来生成对应的版本号即可。

Expand Down Expand Up @@ -88,6 +80,6 @@ cd packages/gi-site
npm run deploy
```

### 04 如何打包 gi-httpservice
### 03 如何打包 gi-httpservice

- 在根目录下执行 `npm run tar:gi-httpservice`

0 comments on commit e329fdc

Please sign in to comment.