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

Function getDevEcoRoots

scripts/build-harmony-har.js:313–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311}
312
313function getDevEcoRoots() {
314 const roots = new Set();
315 const envCandidates = [
316 process.env.DEVECO_STUDIO_HOME,
317 process.env.DEVECO_SDK_HOME,
318 ].filter(Boolean);
319
320 envCandidates.forEach((candidate) => {
321 const normalized = normalizeDevEcoRoot(candidate);
322 if (normalized) {
323 roots.add(normalized);
324 }
325 });
326
327 roots.add('/Applications/DevEco-Studio.app/Contents');
328 return Array.from(roots);
329}
330
331function normalizeDevEcoRoot(value) {
332 const resolved = path.resolve(value);

Callers 1

buildHarFunction · 0.85

Calls 1

normalizeDevEcoRootFunction · 0.85

Tested by

no test coverage detected