(path: string)
| 26 | } |
| 27 | |
| 28 | public static loadAndParseYamlFile(path: string): Settings { |
| 29 | const defaultSettingsFileContent = fs.readFileSync(path, { encoding: 'utf-8' }) |
| 30 | const defaults = yaml.load(defaultSettingsFileContent) as Settings |
| 31 | return defaults |
| 32 | } |
| 33 | |
| 34 | public static loadAndParseJsonFile(path: string) { |
| 35 | return JSON.parse(fs.readFileSync(path, { encoding: 'utf-8' })) |
no outgoing calls
no test coverage detected