We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7246a2 commit ed6a6aaCopy full SHA for ed6a6aa
packages/ui/scripts/update-icons.ts
@@ -26,7 +26,7 @@ const withIcVersionComment = (s: string) => `// Generated from @iconify-json/ic@
26
export const icIcons: Record<string, { body: string }> = Object.keys(icons.icons).filter(i => i.startsWith('baseline')).reduce((a, b) => ({ ...a, [b]: icons.icons[b].body }), {})
27
28
function update() {
29
- writeFileSync(resolve(__dirname, '../src/constants/ic-icons.ts'), withIcVersionComment(`export const icIcons: Record<string, string> = ${JSON.stringify(icIcons, null, 2)}`))
+ writeFileSync(targetPath, withIcVersionComment(`export const icIcons: Record<string, string> = ${JSON.stringify(icIcons, null, 2)}`))
30
console.log('ic icons updated')
31
}
32
0 commit comments