"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const glob = require("glob");
function resolveFileGlobs(globs) {
    return Promise.all(globs.map(resolveFileGlob)).then(xss => xss.reduce((xs, x) => xs.concat(x), []));
}
exports.resolveFileGlobs = resolveFileGlobs;
function resolveFileGlob(globPath) {
    return new Promise((resolve, reject) => {
        glob(globPath, {}, (err, matches) => {
            if (err) {
                return reject(err);
            }
            resolve(matches);
        });
    });
}
//# sourceMappingURL=resolveFileGlobs.js.map