mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Replaced chalk.color.red with chalk.red
This commit is contained in:
committed by
Brian Vaughn
parent
280bcfa9f5
commit
540ea9e2fe
@@ -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('.');
|
||||
|
||||
Reference in New Issue
Block a user