(filePath: string)
| 8 | } |
| 9 | |
| 10 | export async function readJsonc<T = Record<string, unknown>>(filePath: string): Promise<T> { |
| 11 | const content = await readFile(filePath, 'utf-8'); |
| 12 | return parseJsonc(content) as T; |
| 13 | } |
| 14 | |
| 15 | export async function writeJson(filePath: string, data: unknown, indent = 2): Promise<void> { |
| 16 | await writeFile(filePath, JSON.stringify(data, null, indent) + '\n', 'utf-8'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…