mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 12:37:43 +01:00
Added filtering on SVG extension to outline-svg
This commit is contained in:
@@ -41,7 +41,7 @@ async function init() {
|
||||
await fs.mkdir(targetDir);
|
||||
} catch (error) {} // eslint-disable-line no-empty
|
||||
|
||||
const icons = await fs.readdir(inputDir);
|
||||
const icons = await fs.readdir(inputDir).filter((file) => path.extname(file) === '.svg');
|
||||
const parsedIconNodes = await Promise.all(
|
||||
icons.map(async (file) => {
|
||||
const inputFilePath = path.resolve(process.cwd(), inputDir, file);
|
||||
|
||||
Reference in New Issue
Block a user