(file: string)
| 2 | import { dirname } from 'node:path'; |
| 3 | |
| 4 | export function readFile(file: string) { |
| 5 | return readFileSync(file, 'utf-8').toString(); |
| 6 | } |
| 7 | |
| 8 | export function writeFile(file: string, data: string) { |
| 9 | mkdirSync(dirname(file), { recursive: true }); |