Skip to content

Commit

Permalink
Merge pull request facebook#3241 from vjeux/warning_cli
Browse files Browse the repository at this point in the history
[cli] Add a big warning to stop people from modifying the global cli
  • Loading branch information
vjeux committed Oct 5, 2015
2 parents ad622f2 + cfd19bb commit d409f13
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion react-native-cli/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
#!/usr/bin/env node

/**
* Copyright 2004-present Facebook. All Rights Reserved.
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* 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.
*/

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// react-native-cli is installed globally on people's computers. This means
// that it is extremely difficult to have them upgrade the version and
// because there's only one global version installed, it is very prone to
// breaking changes.
//
// The only job of react-native-cli is to init the repository and then
// forward all the commands to the local version of react-native.
//
// If you need to add a new command, please add it to local-cli/.
//
// The only reason to modify this file is to add more warnings and
// troubleshooting information for the `react-native init` command.
//
// Do not make breaking changes! We absolutely don't want to have to
// tell people to update their global version of react-native-cli.
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'use strict';

var fs = require('fs');
Expand Down

0 comments on commit d409f13

Please sign in to comment.