mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 11:35:57 +02:00
fix(font-build): Fix code points allocations
This commit is contained in:
@@ -27,10 +27,10 @@ export async function allocateCodePoints({
|
||||
}: AllocateCodePointsOptions): Promise<CodePoints> {
|
||||
const baseCodePoints = await getLatestCodePoints();
|
||||
|
||||
const endCodePoint = Math.max(...Object.values(baseCodePoints));
|
||||
|
||||
await Promise.all(
|
||||
iconsWithAliases.map(async ([iconName, aliases]) => {
|
||||
const endCodePoint = Math.max(...Object.values(baseCodePoints));
|
||||
|
||||
if (!baseCodePoints[iconName]) {
|
||||
console.log('Code point not found creating new one for', iconName);
|
||||
baseCodePoints[iconName] = endCodePoint + 1;
|
||||
|
||||
Reference in New Issue
Block a user