vendors/tempy.js/generateGlobTasks
    var generateGlobTasks = (patterns, taskOptions) => {
      patterns = arrayUnion([].concat(patterns));
      assertPatternsInput(patterns);
      checkCwdOption(taskOptions);
      const globTasks = [];
      taskOptions = __spreadValues({
        ignore: [],
        expandDirectories: true
      }, taskOptions);
      for (const [index, pattern] of patterns.entries()) {
        if (isNegative(pattern)) {
          continue;
        }
        const ignore = patterns.slice(index).filter((pattern2) => isNegative(pattern2)).map((pattern2) => pattern2.slice(1));
        const options = __spreadProps(__spreadValues({}, taskOptions), {
          ignore: taskOptions.ignore.concat(ignore)
        });
        globTasks.push({ pattern, options });
      }
      return globTasks;
    };