docs: function defaultTarget(parentId) {
      var paths = [], targetDir = process.cwd(), len, target;
  
      function pushTargets(p) {
          if (p) {
              paths.push(toPath(path.dirname(p), 'lib'));
              paths.push(toPath(path.dirname(p), 'src'));
          }
      }
  
      pushTargets(parentId);
      pushTargets(grandparentDir());
  
      len = paths.length;
      for (var i = 0; i < len; i++) {
          target = paths[i];
          try {
              if (fs.statSync(target).isDirectory()) {
                  targetDir = target;
                  break;
              }
          } catch (e) {
              // no path
          }
      }
  
      return targetDir;
  }