支持生成、发布 Typescript SDK

This commit is contained in:
sky
2025-08-21 04:36:13 +08:00
parent cfde112832
commit cebac01716
6 changed files with 232 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ proto/
本项目使用多个工具进行 Protocol Buffers 的管理、构建和代码生成。请安装以下工具:
1. go 相关工具
```bash
go install github.com/bufbuild/buf/cmd/buf@latest
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
@@ -32,6 +34,18 @@ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
```
如果安装后依然提示找不到命令,需要将 go 的 bin 目录添加到 PATH 中。
如果是使用 brew 安装的 go可以执行 `brew unlink go && brew link go` 来解决。
2. node 相关工具
```bash
npm install -g @bufbuild/protoc-gen-es
```
如果安装后依然提示找不到命令,需要将 npm 的 bin 目录添加到 PATH 中。
如果是使用 brew 安装的 node可以执行 `brew unlink node && brew link node` 来解决。
### 检查语法
```bash