@replit/river-codegen
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -254,3 +254,3 @@ import { mkdir, mkdtemp, readFile, rm, unlink, writeFile, } from "fs/promises"; | ||
const fieldName = fields[0].name; | ||
messageChunks.push(` ${toCamelCase(fieldName)}: Type.Optional(${fieldType(fields[0])})`); | ||
messageChunks.push(` ${toCamelCase(fieldName)}: Type.Optional(${fieldType(fields[0])}),`); | ||
continue; | ||
@@ -402,3 +402,3 @@ } | ||
dumpSchemaPath, | ||
]); | ||
], { maxBuffer: 1024 * 1024 * 10 }); | ||
await writeFile(nodePath.join(outputDirectory, "schema.json"), stdout); | ||
@@ -405,0 +405,0 @@ await unlink(dumpSchemaPath); |
{ | ||
"name": "@replit/river-codegen", | ||
"description": "codegenning river from grpc", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"scripts": { | ||
"codegen": "tsx ./src/cli.ts", | ||
"prepack": "pnpm build", | ||
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc-alias", | ||
"test": "vitest run", | ||
"release": "npm publish --access public" | ||
}, | ||
"type": "module", | ||
@@ -26,9 +33,3 @@ "bin": { | ||
"tsx": "^4.6.1" | ||
}, | ||
"scripts": { | ||
"codegen": "tsx ./src/cli.ts", | ||
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc-alias", | ||
"test": "vitest run", | ||
"release": "npm publish --access public" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
39452