| 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)), |