react-native/local-cli
Janic Duplessis f05943de0a Fix local-cli assetRegistryPath and middlewares (#20162)
Summary:
This fixes some regressions with local-cli introduced in c4a66a89a2.

- We didn't pass `assetRegistryPath` which caused the following error when loading the bundle:
```
error: bundling failed: Error: Unable to resolve module `missing-asset-registry-path` from `/Users/janic/Developer/react-native/RNTester/js/uie_thumb_normal@2x.png`: Module `missing-asset-registry-path` does not exist in the Haste module map
```
- The middlewares were not added to the metro server. This causes some packager server features to fail. The one I noticed is that the /status endpoint didn't exist anymore which causes CI to fail and also Android to not load the bundle from the packager initially. The remote debugging feature was also broken.
Pull Request resolved: https://github.com/facebook/react-native/pull/20162

Differential Revision: D8867610

Pulled By: hramos

fbshipit-source-id: 8a08b7f3175692ab6ee73c0a7c25075091ae4792
2018-07-18 15:34:15 -07:00
..
__mocks__ metro-memory-fs: enforce explicit cwd() 2018-05-25 08:04:34 -07:00
bundle Clean metro server correctly after bundle errors 2018-07-17 03:16:52 -07:00
core Hotfix to include react-native-windows in hasteImpl accepted paths (#20007) 2018-07-02 11:17:41 -07:00
dependencies Replace projectRoots with projectRoot + watchRoots 2018-06-19 13:47:32 -07:00
eject Prettier RN local-cli 2018-05-11 13:00:50 -07:00
generator Prettier RN local-cli 2018-05-11 13:00:50 -07:00
info cli: upgrade envinfo for new features in `react-native info` 2018-05-29 17:30:16 -07:00
init Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
install Prettier RN local-cli 2018-05-11 13:00:50 -07:00
library Prettier RN local-cli 2018-05-11 13:00:50 -07:00
link use android build-tools 26.0.2 and set compileSdk to 26 (#19662) 2018-06-13 10:39:55 -07:00
logAndroid Prettier RN local-cli 2018-05-11 13:00:50 -07:00
logIOS Prettier RN local-cli 2018-05-11 13:00:50 -07:00
runAndroid fix missing prettier file (#20001) 2018-07-02 10:48:06 -07:00
runIOS Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
server Fix local-cli assetRegistryPath and middlewares (#20162) 2018-07-18 15:34:15 -07:00
templates Flow v0.76.0 2018-07-09 08:17:51 -07:00
upgrade Prettier RN local-cli 2018-05-11 13:00:50 -07:00
util Fix: D8450498 breaks test_end_to_end job (#19910) 2018-06-26 19:01:56 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
cli.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
cliEntry.js Show packager error stack (#19705) 2018-06-25 18:18:02 -07:00
commands.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
setup_env.bat Update license headers for MIT license 2018-02-16 18:31:53 -08:00
setup_env.sh Update license headers for MIT license 2018-02-16 18:31:53 -08:00
wrong-react-native.js Prettier files with shebang 2018-05-11 13:52:30 -07:00