k8w / tsrpc

A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.
MIT License
1.9k stars 203 forks source link

项目打包时报错:no such file or directory, open 'dist/package.json' #32

Open khawa-angx opened 2 years ago

khawa-angx commented 2 years ago

tsrpc.config

{ proto: [ { ptlDir: "src/procedures/protocols", output: "src/procedures/protocols/service-proto.ts", apiDir: "src/procedures/api", docDir: "src/procedures/docs", ptlTemplate: { baseFile: "src/procedures/protocols/base.ts" }, }, ], sync: [], dev: { autoProto: true, autoSync: true, autoApi: true, watch: "src", entry: "src/procedures/backend.ts", }, build: { autoProto: true, autoSync: true, autoApi: true, outDir: ".procedures", }, };

k8w commented 2 years ago

可以先不修改 build.outDir 选项,经确认修改 outDir 时会有问题,下个版本修复。