protobuf.js/cli/scripts/prepublish.js
Taylor McIntyre da34f43ccd
feat!: move command line tool to a new package named protobufjs-cli (#1234)
* 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>
2021-01-15 16:02:00 -08:00

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");
});