tsrpc-cli
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -307,3 +307,3 @@ #!/usr/bin/env node | ||
msgStr = msgs.map(function (v) { return " " + JSON.stringify(v.name) + ": " + v.msg; }).join(',\n'); | ||
fileContent = ("\nimport { ServiceProto } from 'tsrpc-proto';\nimport { conf } from './test1';\n" + importStr + "\n\nexport interface ServiceType {\n req: {\n" + reqStr + "\n },\n res: {\n" + resStr + "\n },\n msg: {\n" + msgStr + "\n }\n}\n\nexport const serviceProto: ServiceProto<ServiceType> = " + JSON.stringify(proto, null, 4) + ";\n").trim(); | ||
fileContent = ("\nimport { ServiceProto } from 'tsrpc-proto';\n" + importStr + "\n\nexport interface ServiceType {\n req: {\n" + reqStr + "\n },\n res: {\n" + resStr + "\n },\n msg: {\n" + msgStr + "\n }\n}\n\nexport const serviceProto: ServiceProto<ServiceType> = " + JSON.stringify(proto, null, 4) + ";\n").trim(); | ||
process.chdir(originalCwd); | ||
@@ -310,0 +310,0 @@ fs.writeFileSync(output, fileContent); |
{ | ||
"name": "tsrpc-cli", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "TSRPC CLI Tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
51824