pollParams.js 696 B

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _inquirer() {
  7. const data = require("inquirer");
  8. _inquirer = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. /**
  14. * Copyright (c) Facebook, Inc. and its affiliates.
  15. *
  16. * This source code is licensed under the MIT license found in the
  17. * LICENSE file in the root directory of this source tree.
  18. */
  19. // @ts-ignore untyped
  20. var _default = questions => new Promise((resolve, reject) => {
  21. if (!questions) {
  22. resolve({});
  23. return;
  24. }
  25. (0, _inquirer().prompt)(questions).then(resolve, reject);
  26. });
  27. exports.default = _default;
  28. //# sourceMappingURL=pollParams.js.map