(path: string, contents: string)
| 206 | } |
| 207 | |
| 208 | export const writeFile = async (path: string, contents: string) => { |
| 209 | const directory = dirname(path) |
| 210 | |
| 211 | await fs.mkdir(directory, { recursive: true }) |
| 212 | await fs.writeFile(path, contents) |
| 213 | } |
| 214 | |
| 215 | export const deleteFile = async (path: string) => { |
| 216 | try { |
no outgoing calls