basarat/grunt-ts — pull request #42 by musatov (2014-01-06 14:09:04+00:00)
Title: grunt.util.linefeed used for line endings.

We had a project which developed on Windows and Unix systems and faced problem with different line endings. I would like to have all line endings in 'LF' format (Unix style), but your plugin uses OS settings without opportunity to override it. Grunt already has utility property grunt.utility.linefeed which calculated this way:

// The line feed char for the current system.
util.linefeed = process.platform === 'win32' ? '\r\n' : '\n';
so it can be overridden for whole project in Gruntfile.js this way:

grunt.util.linefeed = '\n';
And by default it will work the same way as yours implementation.