Skip to content

Commit 5364908

Browse files
authored
Duplicate CLI file warning header
1 parent 7b124e7 commit 5364908

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

packages/create-react-app/createReactApp.js

+28
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9+
10+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11+
// /!\ DO NOT MODIFY THIS FILE /!\
12+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13+
//
14+
// create-react-app is installed globally on people's computers. This means
15+
// that it is extremely difficult to have them upgrade the version and
16+
// because there's only one global version installed, it is very prone to
17+
// breaking changes.
18+
//
19+
// The only job of create-react-app is to init the repository and then
20+
// forward all the commands to the local version of create-react-app.
21+
//
22+
// If you need to add a new command, please add it to the scripts/ folder.
23+
//
24+
// The only reason to modify this file is to add more warnings and
25+
// troubleshooting information for the `create-react-app` command.
26+
//
27+
// Do not make breaking changes! We absolutely don't want to have to
28+
// tell people to update their global version of create-react-app.
29+
//
30+
// Also be careful with new language features.
31+
// This file must work on Node 4+.
32+
//
33+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34+
// /!\ DO NOT MODIFY THIS FILE /!\
35+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36+
937
'use strict';
1038

1139
const validateProjectName = require('validate-npm-package-name');

0 commit comments

Comments
 (0)