Files
KaTeX/check-node-version.js
ylemkimon f829ebc692 Improve prestart and tests (#1610)
* screenshotter: replace promisify(fs) and mkdirp with fs-extra

* screenshotter: replace selenium.promise with builtin Promise

* Lint all JavaScript files in the root

* unicodeMake: replace console.log with writeFile(string)

* unicodeMake: check timestamp, do not build if up-to-date

* Replace check-dependencies with yarn check

* Exclude src/unicodeMake.js from coverage

* Add (missing) dependencies

* Skip CircleCI if only unrelated has been changed

* Fix commit range

* Use fs-extra in update-sri
2018-08-17 16:29:27 +09:00

11 lines
322 B
JavaScript

const v = process.version
.replace(/^v/, "")
.split(".")
.map(parseInt);
if (v[0] < 6 || (v[0] === 6 && v[1] < 9)) {
// eslint-disable-next-line no-console
console.error("Node 6.9 or later required for development. " +
"Version " + process.version + " found");
process.exit(1);
}