UNPKG

2.38 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _regenerator;
8
9function _load_regenerator() {
10 return _regenerator = _interopRequireDefault(require('babel-runtime/regenerator'));
11}
12
13var _asyncToGenerator2;
14
15function _load_asyncToGenerator() {
16 return _asyncToGenerator2 = _interopRequireDefault(require('babel-runtime/helpers/asyncToGenerator'));
17}
18
19// Set EXPO_VIEW_DIR to universe/exponent to pull expo view code locally instead of from S3
20var action = function () {
21 var _ref = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)( /*#__PURE__*/(_regenerator || _load_regenerator()).default.mark(function _callee(projectDir, options) {
22 return (_regenerator || _load_regenerator()).default.wrap(function _callee$(_context) {
23 while (1) {
24 switch (_context.prev = _context.next) {
25 case 0:
26 _context.next = 2;
27 return (_Eject || _load_Eject()).ejectAsync(projectDir, options);
28
29 case 2:
30 case 'end':
31 return _context.stop();
32 }
33 }
34 }, _callee, this);
35 }));
36
37 return function action(_x, _x2) {
38 return _ref.apply(this, arguments);
39 };
40}();
41
42var _Eject;
43
44function _load_Eject() {
45 return _Eject = _interopRequireWildcard(require('./eject/Eject'));
46}
47
48function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
49
50function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
51
52exports.default = function (program) {
53 program.command('eject [project-dir]').description('Creates Xcode and Android Studio projects for your app. Use this if you need to add custom native functionality.').option('--eject-method [type]', 'Eject method to use. If not specified, the command will ask which one to use. Required when using the --non-interactive option. expoKit, plain').option('-f --force', 'Will attempt to generate an iOS project even when the system is not running macOS. Unsafe and may fail.').asyncActionProjectDir(action, /* skipProjectValidation: */false, /* skipAuthCheck: */true);
54};
55
56module.exports = exports['default'];
57//# sourceMappingURL=../__sourcemaps__/expo_commands/eject.js.map