export async function readJsonFile()

in generator/utils.ts [164:172]


export async function readJsonFile(filePath: string) {
    try {
        const rawContents = await readFile(filePath, { encoding: 'utf8' });

        return JSON.parse(rawContents);    
    } catch (err) {
        throw new Error(`Failed to read JSON file '${filePath}': ${err}`);
    }
}