code: function linkIfExists(pkgs) {
    const sharedDepsDirs = getSharedDepDirs(pkgs, packageHash);
  
    if (sharedDepsDirs.length) {
      logPkgsMsg('Linking', sharedDepsDirs);
      linkPackages(sharedDepsDirs);
    } else {
      log('No shared dependencies found');
    }
  }
docs: link common dependencies between project & given directory/monorepo