Skip to content

Commit fc50270

Browse files
Martin KonicekFacebook Github Bot
authored andcommitted
Fix 'Unexpected strict mode reserved word', bump version to 1.3
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
1 parent 8b199a7 commit fc50270

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

react-native-cli/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var REACT_NATIVE_PACKAGE_JSON_PATH = function() {
7878
// Use Yarn if available, it's much faster than the npm client.
7979
// Return the version of yarn installed on the system, null if yarn is not available.
8080
function getYarnVersionIfAvailable() {
81-
let yarnVersion;
81+
var yarnVersion;
8282
try {
8383
// execSync returns a Buffer -> convert to string
8484
if (process.platform.startsWith('win')) {
@@ -267,7 +267,7 @@ function getInstallPackage(rnPackage) {
267267

268268
function run(root, projectName, rnPackage, forceNpmClient) {
269269
const yarnVersion = (!forceNpmClient) && getYarnVersionIfAvailable();
270-
let installCommand;
270+
var installCommand;
271271
if (yarnVersion) {
272272
console.log('Using yarn v' + yarnVersion);
273273
console.log('Installing ' + getInstallPackage(rnPackage) + '...');

react-native-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-cli",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"license": "BSD-3-Clause",
55
"description": "The React Native CLI tools",
66
"main": "index.js",

0 commit comments

Comments
 (0)