Skip to content

Commit

Permalink
fix: dump schema correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasthiebaud committed Sep 2, 2020
1 parent 562982e commit 85a21cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function importOrWriteSchema(
) {
if (isYaml) {
return `\
const schema = ${schema}\
const schema = ${JSON.stringify(schema, null, 2)}\
`;
} else {
return `import schema from './${parsedPath.base}'`;
Expand Down

0 comments on commit 85a21cf

Please sign in to comment.