(path: string, content: string)
| 282 | } |
| 283 | |
| 284 | async function writeIfNotExists(path: string, content: string): Promise<InitFileResult> { |
| 285 | if (await fileExists(path)) { |
| 286 | return { created: false, path }; |
| 287 | } |
| 288 | |
| 289 | await writeFileContent(path, content); |
| 290 | return { created: true, path }; |
| 291 | } |
no test coverage detected
searching dependent graphs…