import * as glob from 'glob';
export function resolveFileGlobs(globs) {
    return Promise.all(globs.map(resolveFileGlob)).then(xss => xss.reduce((xs, x) => xs.concat(x), []));
}
function resolveFileGlob(globPath) {
    return new Promise((resolve, reject) => {
        glob(globPath, {}, (err, matches) => {
            if (err) {
                return reject(err);
            }
            resolve(matches);
        });
    });
}
//# sourceMappingURL=resolveFileGlobs.js.map