(path: string)
| 77 | } |
| 78 | |
| 79 | function readTextSafe(path: string): string { |
| 80 | try { |
| 81 | return readFileSync(path, 'utf-8') |
| 82 | } catch { |
| 83 | return '' |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | function writeTextSafe(path: string, content: string) { |
| 88 | const dir = dirname(path) |
no test coverage detected