(filesToWrite: string[])
| 923 | * |
| 924 | */ |
| 925 | const commitWriteFiles = (filesToWrite: string[]): Promise<string[]> => { |
| 926 | const writtenFiles = Promise.all( |
| 927 | filesToWrite.map(async (filePath) => { |
| 928 | if (typeof filePath !== 'string') { |
| 929 | throw new Error(`unable to writeFile without filePath`); |
| 930 | } |
| 931 | return commitWriteFile(filePath); |
| 932 | }), |
| 933 | ); |
| 934 | return writtenFiles; |
| 935 | }; |
| 936 | |
| 937 | /** |
| 938 | * Commit a file write operation to disk |
no test coverage detected