Skip to content

Commit

Permalink
fix crlf on graphiql build
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Aug 17, 2021
1 parent dea3700 commit 1148e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphiql/scripts/build-graphiql.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const renderGraphiQL = (options: RenderGraphiQLOptions = {}): string => {
`;

const targetSourceFile = resolve(__dirname, "../src/index.ts");
writeFileSync(targetSourceFile, contents, {
writeFileSync(targetSourceFile, contents.replace(/\\r\\n/g, "\\n"), {
encoding: "utf-8",
});

Expand Down

0 comments on commit 1148e60

Please sign in to comment.