Replaced chalk.color.red with chalk.red

This commit is contained in:
Brian Vaughn
2017-01-09 16:54:21 -08:00
committed by Brian Vaughn
parent 280bcfa9f5
commit 540ea9e2fe
+1 -1
View File
@@ -29,7 +29,7 @@ function updateJSON(path, fields, value) {
try {
data = JSON.parse(fs.readFileSync(path, 'utf8'));
} catch (e) {
this.log(chalk.color.red('ERROR') + ` ${path} doesn't exist… skipping.`);
this.log(chalk.red('ERROR') + ` ${path} doesn't exist… skipping.`);
}
fields.forEach((field) => {
let fieldPath = field.split('.');