mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
* Get protobufjs-cli to a publishable state * Fix eslint issues * Fix pbts path * Install cli package deps on CI 'build' job * fix: get rid of require-protobufjs.js * fix: lint * fix: versions * chore(deps): update package-lock.json Co-authored-by: Stacey Sern <stacey@dropbox.com> Co-authored-by: Gabriel Cangussu <gabrielcangussu@gmail.com> Co-authored-by: Alexander Fenster <fenster@google.com>
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
"use strict";
|
|
|
|
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");
|
|
});
|