Skip to content

Commit

Permalink
Fix 'Unexpected strict mode reserved word', bump version to 1.3
Browse files Browse the repository at this point in the history
Summary:
Looks like using 'let' was too ambitious :)

This should fix the issue facebook#10976.

**Test plan (required)**

Travis & Circle CI tests on this PR.
Closes facebook#11166

Differential Revision: D4237047

Pulled By: bestander

fbshipit-source-id: 85b548d74a0847621519364201cf71d6649ad605
  • Loading branch information
Martin Konicek authored and Facebook Github Bot committed Nov 28, 2016
1 parent 8b199a7 commit fc50270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions react-native-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down Expand Up @@ -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) + '...');
Expand Down
2 changes: 1 addition & 1 deletion react-native-cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit fc50270

Please sign in to comment.