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
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", }, };