Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
monsterooo committed Jan 9, 2024
1 parent 60b258e commit 8f0b863
Show file tree
Hide file tree
Showing 2 changed files with 3,885 additions and 4,508 deletions.
12 changes: 6 additions & 6 deletions build/lucide.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ async function main() {

/**
* {
"path": "assets/lucide",
"name": "a-arrow-down.svg",
"tags": ["letter", "font size", "text", "formatting", "smaller"]
"p": "assets/lucide", // path
"n": "a-arrow-down.svg", // name
"t": ["letter", "font size", "text", "formatting", "smaller" ] //tag
}
*/
await iconFiles.map(async (filePath) => {
const name = path.basename(path.basename(filePath));
const file = await fs.readFileSync(filePath, { encoding: "utf-8" });
const json = JSON.parse(file);
finalResult.push({
path: "assets/lucide",
name: name,
tags: [...json.tags].concat(json.aliases).filter((v) => !!v),
p: "assets/lucide",
n: name,
t: [...json.tags].concat(json.aliases).filter((v) => !!v),
});
});

Expand Down

0 comments on commit 8f0b863

Please sign in to comment.