@react-native-community/cli-platform-android
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -238,2 +238,20 @@ "use strict"; | ||
/** | ||
* Quick & temporary fix for packager crashing on Windows due to using removed --projectRoot flag | ||
* in script. So we just replace the contents of the script with the fixed version. This should be | ||
* removed when PR #25517 on RN Repo gets approved and a new RN version is released. | ||
*/ | ||
const launchPackagerScriptContent = `:: Copyright (c) Facebook, Inc. and its affiliates. | ||
:: | ||
:: This source code is licensed under the MIT license found in the | ||
:: LICENSE file in the root directory of this source tree. | ||
@echo off | ||
title Metro Bundler | ||
call .packager.bat | ||
cd ../../../ | ||
node "%~dp0..\\cli.js" start | ||
pause | ||
exit`; | ||
/** | ||
* Set up the `.packager.(env|bat)` file to ensure the packager starts on the right port. | ||
@@ -286,3 +304,9 @@ */ | ||
procConfig.detached = true; | ||
procConfig.stdio = 'ignore'; | ||
procConfig.stdio = 'ignore'; //Temporary fix for #484. See comment on line 254 | ||
_fs().default.writeFileSync(launchPackagerScript, launchPackagerScriptContent, { | ||
encoding: 'utf8', | ||
flag: 'w' | ||
}); | ||
return (0, _child_process().spawn)('cmd.exe', ['/C', launchPackagerScript], procConfig); | ||
@@ -289,0 +313,0 @@ } |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "build/index.js", | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
], | ||
"gitHead": "34d6f70408505d22877ae721949f614ce077d544" | ||
"gitHead": "9e3134b2c33521229ed377899ea96ec3b92d74b6" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59933
1422