function createMatchers(rootDir, patterns) {
  const matchers = patterns.map(p => createMatcher(rootDir, p));
  return function matcher(path) {
    return matchers.some(m => m(path));
  };
}
@param {string} rootDir
@param {string[]} patterns
@returns {Matcher}