(path: string, contents: string)
| 6 | |
| 7 | // Creates a file at the given path, if the directory doesn't exist it will be created |
| 8 | export async function createFile(path: string, contents: string): Promise<string> { |
| 9 | await fsModule.mkdir(pathModule.dirname(path), { recursive: true }); |
| 10 | await fsModule.writeFile(path, contents); |
| 11 | |
| 12 | return path; |
| 13 | } |
| 14 | |
| 15 | export function isDirectory(configPath: string) { |
| 16 | try { |
no outgoing calls
no test coverage detected
searching dependent graphs…