From fc502704b71bcddddc00eb05bd6692512f042942 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Mon, 28 Nov 2016 03:56:26 -0800 Subject: [PATCH] Fix 'Unexpected strict mode reserved word', bump version to 1.3 Summary: Looks like using 'let' was too ambitious :) This should fix the issue https://github.com/facebook/react-native/issues/10976. **Test plan (required)** Travis & Circle CI tests on this PR. Closes https://github.com/facebook/react-native/pull/11166 Differential Revision: D4237047 Pulled By: bestander fbshipit-source-id: 85b548d74a0847621519364201cf71d6649ad605 --- react-native-cli/index.js | 4 ++-- react-native-cli/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 590372f0fc..d2b284467f 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 b67d0ec015..e32cd6d885 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",