2016-11-28 16:17:51 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2018-05-11 20:32:37 +00:00
|
|
|
*
|
|
|
|
* @format
|
2016-11-28 16:17:51 +00:00
|
|
|
*/
|
2018-05-11 20:32:37 +00:00
|
|
|
|
2016-11-28 16:17:51 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
require('babel-register')({
|
2018-08-22 17:39:11 +00:00
|
|
|
babelrc: false,
|
2016-11-28 16:17:51 +00:00
|
|
|
presets: [
|
|
|
|
require('babel-preset-es2015-node'),
|
2018-05-11 20:32:37 +00:00
|
|
|
require('babel-preset-stage-3'),
|
2016-11-28 16:17:51 +00:00
|
|
|
],
|
|
|
|
// Enable transpiling for react-native-git-upgrade AND the generator, just like the upgrade CLI command does
|
2018-05-11 20:32:37 +00:00
|
|
|
only: /(react-native-git-upgrade\/(?!(node_modules)))|(local-cli\/generator)/,
|
2016-11-28 16:17:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
var cliEntry = require('./cliEntry');
|
|
|
|
|
|
|
|
module.exports = cliEntry;
|