mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 15:07:41 +01:00
Attempts to fix github workflow issues stemming from JSON files within the icons directory
This commit is contained in:
@@ -8,7 +8,7 @@ import { getContributors } from "./fetchAllContributors";
|
||||
const directory = path.join(process.cwd(), "../icons");
|
||||
|
||||
export function getAllNames() {
|
||||
const fileNames = fs.readdirSync(directory);
|
||||
const fileNames = fs.readdirSync(directory).filter((file) => path.extname(file) === '.svg');
|
||||
|
||||
return fileNames.map((fileName) => {
|
||||
return fileName.replace(/\.svg$/, "");
|
||||
|
||||
@@ -41,7 +41,7 @@ async function init() {
|
||||
await fs.mkdir(targetDir);
|
||||
} catch (error) {} // eslint-disable-line no-empty
|
||||
|
||||
const icons = await fs.readdir(inputDir).filter((file) => path.extname(file) === '.svg');
|
||||
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