mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 19:47:41 +01:00
fix: fixed async migration issue in generate changed icons comment markup
This commit is contained in:
@@ -3,7 +3,6 @@ import path from 'path';
|
||||
import { parseSync } from 'svgson';
|
||||
import {
|
||||
shuffleArray,
|
||||
readSvgDirectory,
|
||||
getCurrentDirPath,
|
||||
minifySvg,
|
||||
toPascalCase,
|
||||
@@ -43,7 +42,7 @@ const getImageTagsByFiles = (files, getBaseUrl, width) =>
|
||||
return `<img title="${file}" alt="${file}" ${widthAttr} src="${url}/${base64}.svg"/>`;
|
||||
});
|
||||
|
||||
const svgFiles = readSvgDirectory(ICONS_DIR).map((file) => `icons/${file}`);
|
||||
const svgFiles = fs.readdirSync(ICONS_DIR).map((file) => `icons/${file}`);
|
||||
|
||||
const iconsFilteredByName = (search) => svgFiles.filter((file) => file.includes(search));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user