Update scripts

This commit is contained in:
Michael Jackson
2019-02-01 17:54:21 -08:00
parent 3424643488
commit 8f11d84428
7 changed files with 207 additions and 76 deletions

12
scripts/utils/process.js Normal file
View File

@ -0,0 +1,12 @@
const util = require('util');
const chalk = require('chalk');
function die(why) {
const message = typeof why === 'string' ? why : util.inspect(why);
console.error(chalk.red(message));
process.exit(1);
}
module.exports = {
die
};