Create metro-react-native-babel-transformer package

Summary:
By having this package we can remove the dependency from `react-native` to `metro` and then unblock the releases of metro to npm.

We cannot use this package yet from `react-native` since it hasn't been published, what I'm gonna do here is the following:

1. Land this diff
2. Publish manually a version of `metro-react-native-babel-transformer@0.50.0` once this diff lands.
3. Update the RN repo to depend on `metro-react-native-babel-transformer` instead of `metro`.

Then we should be able to publish versions of metro :)

Differential Revision: D13432231

fbshipit-source-id: 522152e32162cc5fc40aea2fa4c8fd53c528e2e3
This commit is contained in:
Rafael Oleza
2018-12-12 09:39:19 -08:00
committed by Facebook Github Bot
parent 3bef4bddbf
commit c9dc1c68a2
2 changed files with 12 additions and 19 deletions

View File

@@ -178,10 +178,8 @@
"jest": "24.0.0-alpha.6",
"jest-junit": "5.2.0",
"lodash": "^4.17.5",
"metro": "0.50.0",
"metro-babel-register": "0.50.0",
"metro-core": "0.50.0",
"metro-memory-fs": "0.50.0",
"metro": "0.50.0",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",