MCPcopy Create free account
hub / github.com/stenciljs/core / commitWriteFiles

Function commitWriteFiles

src/compiler/sys/in-memory-fs.ts:925–935  ·  view source on GitHub ↗
(filesToWrite: string[])

Source from the content-addressed store, hash-verified

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

Callers 1

commitFunction · 0.85

Calls 1

commitWriteFileFunction · 0.85

Tested by

no test coverage detected