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

Function checkProject

scripts/devtools/utils.js:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 const failedProjects = [];
22
23 const checkProject = async project => {
24 const owners = (await execRead(`npm owner ls ${project}`))
25 .split('\n')
26 .filter(owner => owner)
27 .map(owner => owner.split(' ')[0]);
28
29 if (!owners.includes(currentUser)) {
30 failedProjects.push(project);
31 }
32 };
33
34 await logger(
35 Promise.all(NPM_PACKAGES.map(checkProject)),

Callers

nothing calls this directly

Calls 3

execReadFunction · 0.70
mapMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected