Skip to content

Commit

Permalink
Convert JSON.stringify \n to os.EOL when writing tsconfig.json (#6610)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton authored and ianschmitz committed Mar 11, 2019
1 parent 2591590 commit ed86da9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const immer = require('react-dev-utils/immer').produce;
const globby = require('react-dev-utils/globby').sync;

function writeJson(fileName, object) {
fs.writeFileSync(fileName, JSON.stringify(object, null, 2) + os.EOL);
fs.writeFileSync(fileName, JSON.stringify(object, null, 2).replace(/\n/g, os.EOL) + os.EOL);
}

function verifyNoTypeScript() {
Expand Down

0 comments on commit ed86da9

Please sign in to comment.