2
0
mirror of https://github.com/iconify/collections-json.git synced 2024-11-25 14:17:46 +00:00

chore: use also join on lookupCollections

This commit is contained in:
Joaquín Sánchez Jiménez 2021-09-23 12:51:08 +02:00
parent 7e84c7d78a
commit f09f318162

View File

@ -448,5 +448,5 @@ export const lookupCollection = async(name: string): Promise<IconifyJSON> => {
* @return {Promise<IconifyMetaDataCollection>} * @return {Promise<IconifyMetaDataCollection>}
*/ */
export const lookupCollections = async(): 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'))
} }