MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / ensureFileExists

Function ensureFileExists

scripts/build-harmony-har.js:434–438  ·  view source on GitHub ↗
(filePath, message)

Source from the content-addressed store, hash-verified

432}
433
434function ensureFileExists(filePath, message) {
435 if (!fs.existsSync(filePath)) {
436 fail(message);
437 }
438}
439
440function relativeToProject(filePath) {
441 return path.relative(projectRoot, filePath) || '.';

Callers 2

syncHarmonyNativeSourcesFunction · 0.85
ensureWrapperProjectFunction · 0.85

Calls 1

failFunction · 0.85

Tested by

no test coverage detected