'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = glob;
var globlib = require('glob');
var path = require('path');

function glob(pattern, options) {
  return new Promise(function (resolve, reject) {
    globlib(pattern, options, function (err, matches) {
      if (err) return reject(err);
      return resolve(matches.map(function (match) {
        return path.normalize(match);
      }));
    });
  });
}