(filePath: string, content: string)
| 101 | ) |
| 102 | |
| 103 | export const writeFile = (filePath: string, content: string): T.Effect<OT.HasTracer, WriteFileError, void> => |
| 104 | OT.withSpan('writeFile', { attributes: { filePath } })( |
| 105 | T.tryCatch( |
| 106 | () => fs.writeFileSync(filePath, content, { encoding: 'utf8' }), |
| 107 | (error) => new WriteFileError({ filePath, error }), |
| 108 | ), |
| 109 | ) |
| 110 | |
| 111 | export const writeFileJson = ({ |
| 112 | filePath, |
no outgoing calls
no test coverage detected
searching dependent graphs…