MCPcopy Index your code
hub / github.com/react/react / asyncRimRaf

Function asyncRimRaf

scripts/rollup/utils.js:65–75  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

63}
64
65function asyncRimRaf(filepath) {
66 return new Promise((resolve, reject) =>
67 rimraf(filepath, error => {
68 if (error) {
69 reject(error);
70 return;
71 }
72 resolve();
73 })
74 );
75}
76
77function resolvePath(filepath) {
78 if (filepath[0] === '~') {

Callers 2

prepareNpmPackageFunction · 0.85
buildEverythingFunction · 0.85

Calls 2

rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected