mirror of
https://github.com/iconify/collections-json.git
synced 2024-11-22 04:25:11 +00:00
chore: use also join
on lookupCollections
This commit is contained in:
parent
7e84c7d78a
commit
f09f318162
@ -448,5 +448,5 @@ export const lookupCollection = async(name: string): Promise<IconifyJSON> => {
|
||||
* @return {Promise<IconifyMetaDataCollection>}
|
||||
*/
|
||||
export const lookupCollections = async(): Promise<IconifyMetaDataCollection> => {
|
||||
return JSON.parse(await fs.readFile('./collections.json', 'utf8'))
|
||||
return JSON.parse(await fs.readFile(join(dir, './collections.json'), 'utf8'))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user