MCPcopy Create free account
hub / github.com/expo/expo / removePatchFilesAsync

Function removePatchFilesAsync

packages/patch-project/src/cli/patchProjectAsync.ts:151–159  ·  view source on GitHub ↗
(patchRoot: string, platform: ModPlatform)

Source from the content-addressed store, hash-verified

149}
150
151async function removePatchFilesAsync(patchRoot: string, platform: ModPlatform): Promise<void> {
152 const patchFiles = await globAsync(`${platform}*.patch`, { cwd: patchRoot, absolute: true });
153 await Promise.all(
154 patchFiles.map((file) => {
155 logger.log(`Removing patch file: ${file}`);
156 return fs.rm(file, { force: true });
157 })
158 );
159}

Callers 1

patchProjectAsyncFunction · 0.85

Calls 2

mapMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…