Skip to content

Commit

Permalink
prisma-labs#30 Save output in utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
mbican committed Jul 12, 2019
1 parent 2e87323 commit 50b1a9b
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 @@ -100,7 +100,7 @@ export function printToFile(
if (!fs.existsSync(output)) {
mkdirp.sync(output)
}
fs.writeFileSync(output, schema)
fs.writeFileSync(output, schema, 'utf8')

return { status: 'ok', path: output }
} catch (err) {
Expand Down

0 comments on commit 50b1a9b

Please sign in to comment.