( gitDir: string, relativePath: string, content: string )
| 165 | }; |
| 166 | |
| 167 | export const writeRepoFile = ( |
| 168 | gitDir: string, |
| 169 | relativePath: string, |
| 170 | content: string |
| 171 | ): void => { |
| 172 | const filePath = path.resolve(gitDir, relativePath); |
| 173 | mkdirSync(path.dirname(filePath), { recursive: true }); |
| 174 | writeFileSync(filePath, content); |
| 175 | }; |
| 176 | |
| 177 | export const appendRepoFile = ( |
| 178 | gitDir: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…