You've already forked simple-icons
mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-11-23 21:34:49 +02:00
Update XO configurations (#10859)
This commit is contained in:
@@ -121,9 +121,10 @@ try {
|
||||
: undefined,
|
||||
};
|
||||
|
||||
console.log(
|
||||
process.stdout.write(
|
||||
'About to write the following to simple-icons.json:\n' +
|
||||
JSON.stringify(answers, null, 4),
|
||||
JSON.stringify(answers, null, 4) +
|
||||
'\n',
|
||||
);
|
||||
|
||||
if (
|
||||
@@ -134,14 +135,14 @@ try {
|
||||
iconsData.icons.push(answers);
|
||||
iconsData.icons.sort((a, b) => collator.compare(a.title, b.title));
|
||||
await writeIconsData(iconsData);
|
||||
console.log(chalk.green('\nData written successfully.'));
|
||||
process.stdout.write(chalk.green('\nData written successfully.\n'));
|
||||
} else {
|
||||
console.log(chalk.red('\nAborted.'));
|
||||
process.stdout.write(chalk.red('\nAborted.\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof ExitPromptError) {
|
||||
console.log(chalk.red('\nAborted.'));
|
||||
process.stdout.write(chalk.red('\nAborted.\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user