'use strict';

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

function mkdirp(path) {
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

  return new Promise(function (resolve, reject) {
    // $FlowFixMe
    mkdir(path, opts, function (err) {
      if (err) return reject(err);
      return resolve(true);
    });
  });
}