mirror of
https://github.com/iconify/collections-json.git
synced 2024-09-19 10:29:03 +00:00
chore: we no longer expose internals
This commit is contained in:
parent
43e8825531
commit
d389d11f93
@ -393,7 +393,7 @@ const dir = resolve(_dirname, '..')
|
|||||||
*
|
*
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
export const rootDir = () => dir
|
const rootDir = () => dir
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Locate JSON file
|
* Locate JSON file
|
||||||
@ -401,7 +401,7 @@ export const rootDir = () => dir
|
|||||||
* @param {string} name Collection name
|
* @param {string} name Collection name
|
||||||
* @returns {string} Path to collection json file
|
* @returns {string} Path to collection json file
|
||||||
*/
|
*/
|
||||||
export const locate = (name: string): PathLike => `${dir}/json/${name}.json`
|
const locate = (name: string): PathLike => `${dir}/json/${name}.json`
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a collection.
|
* Loads a collection.
|
||||||
|
Loading…
Reference in New Issue
Block a user