Skip to content

Commit

Permalink
Let ts-poet do the JSON.stringify.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Feb 13, 2021
1 parent 69e3f72 commit 44d50ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function generateSchema(ctx: Context, fileDesc: FileDescriptorProto, sour

chunks.push(code`
export const protoMetadata: ProtoMetadata = {
fileDescriptor: ${JSON.stringify(outputFileDesc)} as any,
fileDescriptor: ${outputFileDesc} as any,
references: { ${joinCode(references, { on: ',' })} },
dependencies: [${joinCode(dependencies, { on: ',' })}],
}
Expand Down

0 comments on commit 44d50ba

Please sign in to comment.