in src/repoutil.js [461:484]
function getRepoIncludePath (repo) {
const repoPath = repo.path;
if (!repoPath) {
return [];
}
if (repo.isModule) {
// The easy case... if it's a module, then we only include stuff in that module. Since we should already be in
// the module folder, we can just use '.'.
return ['--', '.'];
}
// The harder case - this is the main repo. We want to include the repo root folder and the folder pointed to by
// repo.path, but exclude all module folders.
const matchingRepos = allRepos.filter(function (testRepo) {
return testRepo.isModule && testRepo.repoName === repo.repoName;
});
return matchingRepos.reduce(function (previous, moduleRepo) {
// Note that wwe have to do the '../' stuff because we're not in the root directory of the repo.
previous.push(':!../' + moduleRepo.path);
return previous;
}, ['--', '../']);
}