1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: update iconify

This commit is contained in:
Ferdinand Mütsch
2022-11-13 20:20:41 +01:00
parent 2976203ecc
commit 088bd17803
5 changed files with 43 additions and 29 deletions

View File

@ -10,6 +10,7 @@
const fs = require('fs')
const path = require('path')
const { Collection } = require('@iconify/json-tools')
const { locate } = require("@iconify/json");
let icons = [
'fxemoji:key',
@ -107,7 +108,7 @@ icons.forEach(icon => {
let code = ''
Object.keys(filtered).forEach(prefix => {
let collection = new Collection()
if (!collection.loadIconifyCollection(prefix)) {
if (!collection.loadFromFile(locate(prefix))) {
console.error('Error loading collection', prefix)
return
}