(filePath: string, content: string)
| 28 | } |
| 29 | |
| 30 | export async function writeFile(filePath: string, content: string): Promise<void> { |
| 31 | await fs.ensureDir(path.dirname(filePath)) |
| 32 | await fs.writeFile(filePath, content, 'utf-8') |
| 33 | } |
| 34 | |
| 35 | export async function readJSON<T>(filePath: string): Promise<T> { |
| 36 | const content = await readFile(filePath) |
no outgoing calls
no test coverage detected