mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-12 09:29:19 +08:00
Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support
Summary: This is the manually imported version of https://github.com/facebook/react-native/pull/10786 This was mostly straigthforward by replacing the local-cli folder with the version I had in my local git checkout, plus a few other files I listed with git diff --name-only. Reviewed By: hramos Differential Revision: D4201118 fbshipit-source-id: 4d0fb54b0edda9de1abba427958e420fd2ac105c
This commit is contained in:
committed by
Facebook Github Bot
parent
eddc2c90f6
commit
a477aec10d
2
react-native-cli/index.js
vendored
2
react-native-cli/index.js
vendored
@@ -273,7 +273,7 @@ function run(root, projectName, rnPackage, forceNpmClient) {
|
||||
console.log('Installing ' + getInstallPackage(rnPackage) + '...');
|
||||
installCommand = 'yarn add ' + getInstallPackage(rnPackage) + ' --exact';
|
||||
} else {
|
||||
console.log('Installing ' + getInstallPackage(rnPackage) + ' from npm...');
|
||||
console.log('Installing ' + getInstallPackage(rnPackage) + '...');
|
||||
if (!forceNpmClient) {
|
||||
console.log('Consider installing yarn to make this faster: https://yarnpkg.com');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user