(file: string, data: string)
| 237 | const prettierConfig = await prettier.resolveConfig(process.cwd()); |
| 238 | |
| 239 | const writeFile = async (file: string, data: string) => { |
| 240 | const updatedConfig = await prettier.format(data, { |
| 241 | parser: "babel-ts", |
| 242 | ...prettierConfig, |
| 243 | }); |
| 244 | |
| 245 | await fsExtra.outputFile( |
| 246 | path.join(process.cwd(), config.outputDir, file), |
| 247 | updatedConfig |
| 248 | ); |
| 249 | }; |
| 250 | |
| 251 | const readFile = (file: string) => { |
| 252 | return fsExtra.readFile( |
no outgoing calls
no test coverage detected