Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/icons/scripts/figma-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,17 @@ async function main(): Promise<void> {
const removed = existingIcons.filter((n) => !upcomingSet.has(n));

if (added.length) {
const addedSummary = `New icons: ${added.join(', ')}`;
const addedList = added.map((name) => ` - ${name}`).join('\n');
const addedSummary = `New icons:\n${addedList}`;
changesetSummary += `\n${addedSummary}`;
log('added', `🆕 ${addedSummary}`);
log('added', `🆕 New icons: ${added.join(', ')}`);
}

if (removed.length) {
const removedSummary = `Removed icons: ${removed.join(', ')}`;
const removedList = removed.map((name) => ` - ${name}`).join('\n');
const removedSummary = `Removed icons:\n${removedList}`;
changesetSummary += `\n${removedSummary}`;
log('removed', `✂️ ${removedSummary}`);
log('removed', `✂️ Removed icons: ${removed.join(', ')}`);
}
} else {
changesetSummary += '\ninitial sync of icons from Figma';
Expand Down
Loading