Update scripts
This commit is contained in:
12
scripts/utils/process.js
Normal file
12
scripts/utils/process.js
Normal 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
|
||||
};
|
Reference in New Issue
Block a user