Skip to content

Commit

Permalink
Merge branch 'main' into feat/added-linting-and-formatting-of-icon-an…
Browse files Browse the repository at this point in the history
…d-category-json-files
  • Loading branch information
jguddas authored Oct 22, 2023
2 parents da31b6d + 6c6c844 commit 4eb043e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generateNextJSAliases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Promise.all(
const iconMetaData = JSON.parse(metaJson);

const aliases = iconMetaData.aliases ?? [];
aliases.push(iconNameKebabCaseNextjsFlavour);
if (!aliases.includes(iconNameKebabCaseNextjsFlavour)) {
aliases.push(iconNameKebabCaseNextjsFlavour);
}

const output = JSON.stringify({ ...iconMetaData, aliases }, null, 2);
fs.writeFile(path.resolve(ICONS_DIR, `${iconName}.json`), output, 'utf-8');
Expand Down

0 comments on commit 4eb043e

Please sign in to comment.