mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
12 lines
308 B
JavaScript
12 lines
308 B
JavaScript
var path = require("path"),
|
|
fs = require("fs");
|
|
|
|
// ensure LF on bin files
|
|
[
|
|
path.join(__dirname, "..", "bin", "pbjs"),
|
|
path.join(__dirname, "..", "bin", "pbts")
|
|
]
|
|
.forEach(function(file) {
|
|
fs.writeFileSync(file, fs.readFileSync(file).toString("utf8").replace(/\r?\n/g, "\n"), "utf8");
|
|
});
|