diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 590372f0f..d2b284467 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -78,7 +78,7 @@ var REACT_NATIVE_PACKAGE_JSON_PATH = function() { // Use Yarn if available, it's much faster than the npm client. // Return the version of yarn installed on the system, null if yarn is not available. function getYarnVersionIfAvailable() { - let yarnVersion; + var yarnVersion; try { // execSync returns a Buffer -> convert to string if (process.platform.startsWith('win')) { @@ -267,7 +267,7 @@ function getInstallPackage(rnPackage) { function run(root, projectName, rnPackage, forceNpmClient) { const yarnVersion = (!forceNpmClient) && getYarnVersionIfAvailable(); - let installCommand; + var installCommand; if (yarnVersion) { console.log('Using yarn v' + yarnVersion); console.log('Installing ' + getInstallPackage(rnPackage) + '...'); diff --git a/react-native-cli/package.json b/react-native-cli/package.json index b67d0ec01..e32cd6d88 100644 --- a/react-native-cli/package.json +++ b/react-native-cli/package.json @@ -1,6 +1,6 @@ { "name": "react-native-cli", - "version": "1.2.0", + "version": "1.3.0", "license": "BSD-3-Clause", "description": "The React Native CLI tools", "main": "index.js",