导出pbjs和pbts文件
npm install pbts-cli -g
pbts-cli build proto-files-path //proto-files-path: proto文件路径
pbts-cli build pbconfig.json //pbconfig.json 编译配置文件
编译配置文件:
{
"delimited": false,
"convert": false,
"verify": false,
"create": true,
"input": "../sample",
"output": "../sample/output"
}
proto文件必须有package,且package名称相同