in src/config-loader.ts [141:148]
async function parseConfigFile(file: string): Promise<FeatureManagementConfig> {
try {
const fileContent = (await fs.promises.readFile(file)).toString()
return JSON.parse(fileContent)
} catch (e) {
throw new ParseError(`Failed to parse: ${file}.`)
}
}