Skip to content

Commit

Permalink
Merge branch 'main' into dynamic-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis authored Jan 8, 2025
2 parents c28f9b3 + db30ab8 commit 086826d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/lib/codeExamples/createLabCodeExamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { $CamelCase } from '@lucide/lab';
</script>
<template>
<Icon :iconNode="burger" />
<Icon :iconNode="$CamelCase" />
</template>
`,
},
Expand All @@ -61,7 +61,7 @@ import { Icon } from 'lucide-svelte';
import { $CamelCase } from '@lucide/lab';
</script>
<Icon iconNode={burger} />
<Icon iconNode={$CamelCase} />
`,
},
{
Expand Down
3 changes: 2 additions & 1 deletion icons/building-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"enterprise",
"skyscraper",
"organisation",
"organization"
"organization",
"city"
],
"categories": [
"account",
Expand Down
3 changes: 3 additions & 0 deletions icons/grid-2x2-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"text",
"layout",
"math"
],
"aliases": [
"grid-2-x-2-check"
]
}
3 changes: 3 additions & 0 deletions icons/grid-2x2-x.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"text",
"layout",
"math"
],
"aliases": [
"grid-2-x-2-x"
]
}
2 changes: 1 addition & 1 deletion scripts/generateChangedIconsCommentMarkup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (changedFilesPathString == null) {

const changedFiles = changedFilesPathString
.split(' ')
.map((file) => file.replace('.json', '.svg'))
.filter((file) => file.includes('.svg'))
.filter((file, idx, arr) => arr.indexOf(file) === idx);

if (changedFiles.length === 0) {
Expand Down
3 changes: 2 additions & 1 deletion scripts/generateNextJSAliases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Promise.all(
aliases.push(iconNameKebabCaseNextjsFlavour);
}

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

0 comments on commit 086826d

Please sign in to comment.