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