mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Revert D5409825: [RN] Convert easy files to Prettier
Differential Revision: D5409825 fbshipit-source-id: f797a40b58bc6bcc6ae53ed820a10ab49d3f10f5
This commit is contained in:
committed by
Facebook Github Bot
parent
bfece1d800
commit
aafccdf622
6
react-native-git-upgrade/cli.js
vendored
6
react-native-git-upgrade/cli.js
vendored
@@ -5,18 +5,16 @@
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
require('babel-register')({
|
||||
presets: [
|
||||
require('babel-preset-es2015-node'),
|
||||
require('babel-preset-stage-3'),
|
||||
require('babel-preset-stage-3')
|
||||
],
|
||||
// Enable transpiling for react-native-git-upgrade AND the generator, just like the upgrade CLI command does
|
||||
only: /(react-native-git-upgrade\/(?!(node_modules)))|(local-cli\/generator)/,
|
||||
only: /(react-native-git-upgrade\/(?!(node_modules)))|(local-cli\/generator)/
|
||||
});
|
||||
|
||||
var cliEntry = require('./cliEntry');
|
||||
|
||||
Reference in New Issue
Block a user