Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Metro dependencies #55

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions packages/local-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"dependencies": {
"@babel/core": "^7.1.5",
"@babel/plugin-transform-strict-mode": "^7.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, forgot we use babel/register here. time to make a proper build/watch infra :p

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so called "post-merge" review 😂

"@babel/preset-env": "^7.1.5",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "^7.0.0",
"absolute-path": "^0.0.0",
"chalk": "^1.1.1",
"commander": "^2.9.0",
"compression": "^1.7.1",
Expand All @@ -39,16 +39,16 @@
"envinfo": "^5.7.0",
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"fbjs-scripts": "^1.0.1",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
"lodash": "^4.17.5",
"metro": "0.50.0",
"metro-config": "0.50.0",
"metro-core": "0.50.0",
"metro-memory-fs": "0.50.0",
"metro": "^0.51.0",
"metro-config": "^0.51.0",
"metro-core": "^0.51.0",
"metro-memory-fs": "^0.51.0",
"metro-react-native-babel-transformer": "^0.51.0",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
Expand All @@ -58,7 +58,6 @@
"npmlog": "^2.0.4",
"opn": "^3.0.2",
"plist": "^3.0.0",
"promise": "^7.1.1",
"semver": "^5.0.3",
"serve-static": "^1.13.1",
"shell-quote": "1.6.1",
Expand All @@ -67,10 +66,8 @@
"xmldoc": "^0.4.0"
},
"devDependencies": {
"@babel/plugin-transform-strict-mode": "^7.2.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.0.0-alpha.6",
"eslint": "^5.7.0",
"flow-bin": "0.87.0",
"jest": "24.0.0-alpha.6",
"react-native": "^0.57.0"
Expand Down
1 change: 0 additions & 1 deletion packages/local-cli/runAndroid/runAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const { spawnSync, spawn, execFileSync } = require('child_process');
const fs = require('fs');
const isString = require('lodash/isString');
const path = require('path');
const Promise = require('promise');
const findReactNativeScripts = require('../util/findReactNativeScripts');
const isPackagerRunning = require('../util/isPackagerRunning');
const adb = require('./adb');
Expand Down
3 changes: 1 addition & 2 deletions packages/local-cli/server/util/launchEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
const { execSync, spawn } = require('child_process');
const isAbsolutePath = require('absolute-path');
const shellQuote = require('shell-quote');

function isTerminalEditor(editor) {
Expand Down Expand Up @@ -141,7 +140,7 @@ function printInstructions(title) {
}

function transformToAbsolutePathIfNeeded(pathName) {
if (!isAbsolutePath(pathName)) {
if (!path.isAbsolute(pathName)) {
return path.resolve(process.cwd(), pathName);
}
return pathName;
Expand Down
4 changes: 3 additions & 1 deletion packages/local-cli/util/loadMetroConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ const getDefaultConfig = (root: string) => {
port: process.env.RCT_METRO_PORT || 8081,
},
transformer: {
babelTransformerPath: require.resolve('metro/src/reactNativeTransformer'),
babelTransformerPath: require.resolve(
'metro-react-native-babel-transformer'
),
assetRegistryPath: require.resolve(
'react-native/Libraries/Image/AssetRegistry'
),
Expand Down
65 changes: 65 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3948,6 +3948,13 @@ metro-babel-register@^0.48.1:
core-js "^2.2.2"
escape-string-regexp "^1.0.5"

metro-babel-transformer@0.51.0:
version "0.51.0"
resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.51.0.tgz#9ee5199163ac46b2057527b3f8cbd8b089ffc03e"
integrity sha512-M7KEY/hjD3E8tJEliWgI0VOSaJtqaznC0ItM6FiMrhoGDqqa1BvGofl+EPcKqjBSOV1UgExua/T1VOIWbjwQsw==
dependencies:
"@babel/core" "^7.0.0"

metro-babel7-plugin-react-transform@0.48.3:
version "0.48.3"
resolved "https://registry.yarnpkg.com/metro-babel7-plugin-react-transform/-/metro-babel7-plugin-react-transform-0.48.3.tgz#c3e43c99173c143537fb234b44cdd6e6b511d511"
Expand All @@ -3962,6 +3969,13 @@ metro-babel7-plugin-react-transform@0.50.0:
dependencies:
"@babel/helper-module-imports" "^7.0.0"

metro-babel7-plugin-react-transform@0.51.0:
version "0.51.0"
resolved "https://registry.yarnpkg.com/metro-babel7-plugin-react-transform/-/metro-babel7-plugin-react-transform-0.51.0.tgz#af27dd81666b91f05d2b371b0d6d283c585e38b6"
integrity sha512-dZ95kXcE2FJMoRsYhxr7YLCbOlHWKwe0bOpihRhfImDTgFfuKIzU4ROQwMUbE0NCbzB+ATFsa2FZ3pHDJ5GI0w==
dependencies:
"@babel/helper-module-imports" "^7.0.0"

metro-cache@0.48.3:
version "0.48.3"
resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.48.3.tgz#8c2818d3cd6b79570cd7750da4685e9c7c061577"
Expand Down Expand Up @@ -4130,6 +4144,57 @@ metro-react-native-babel-preset@0.50.0:
metro-babel7-plugin-react-transform "0.50.0"
react-transform-hmr "^1.0.4"

metro-react-native-babel-preset@0.51.0:
version "0.51.0"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.51.0.tgz#978d960acf2d214bbbe43e59145878d663bd07de"
integrity sha512-Y/aPeLl4RzY8IEAneOyDcpdjto/8yjIuX9eUWRngjSqdHYhGQtqiSBpfTpo0BvXpwNRLwCLHyXo58gNpckTJFw==
dependencies:
"@babel/plugin-proposal-class-properties" "^7.0.0"
"@babel/plugin-proposal-export-default-from" "^7.0.0"
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0"
"@babel/plugin-proposal-object-rest-spread" "^7.0.0"
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
"@babel/plugin-proposal-optional-chaining" "^7.0.0"
"@babel/plugin-syntax-dynamic-import" "^7.0.0"
"@babel/plugin-syntax-export-default-from" "^7.0.0"
"@babel/plugin-transform-arrow-functions" "^7.0.0"
"@babel/plugin-transform-block-scoping" "^7.0.0"
"@babel/plugin-transform-classes" "^7.0.0"
"@babel/plugin-transform-computed-properties" "^7.0.0"
"@babel/plugin-transform-destructuring" "^7.0.0"
"@babel/plugin-transform-exponentiation-operator" "^7.0.0"
"@babel/plugin-transform-flow-strip-types" "^7.0.0"
"@babel/plugin-transform-for-of" "^7.0.0"
"@babel/plugin-transform-function-name" "^7.0.0"
"@babel/plugin-transform-literals" "^7.0.0"
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
"@babel/plugin-transform-object-assign" "^7.0.0"
"@babel/plugin-transform-parameters" "^7.0.0"
"@babel/plugin-transform-react-display-name" "^7.0.0"
"@babel/plugin-transform-react-jsx" "^7.0.0"
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
"@babel/plugin-transform-regenerator" "^7.0.0"
"@babel/plugin-transform-runtime" "^7.0.0"
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
"@babel/plugin-transform-spread" "^7.0.0"
"@babel/plugin-transform-sticky-regex" "^7.0.0"
"@babel/plugin-transform-template-literals" "^7.0.0"
"@babel/plugin-transform-typescript" "^7.0.0"
"@babel/plugin-transform-unicode-regex" "^7.0.0"
"@babel/template" "^7.0.0"
metro-babel7-plugin-react-transform "0.51.0"
react-transform-hmr "^1.0.4"

metro-react-native-babel-transformer@^0.51.0:
version "0.51.0"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.51.0.tgz#57a695e97a19d95de63c9633f9d0dc024ee8e99a"
integrity sha512-VFnqtE0qrVmU1HV9B04o53+NZHvDwR+CWCoEx4+7vCqJ9Tvas741biqCjah9xtifoKdElQELk6x0soOAWCDFJA==
dependencies:
"@babel/core" "^7.0.0"
babel-preset-fbjs "^3.0.1"
metro-babel-transformer "0.51.0"
metro-react-native-babel-preset "0.51.0"

metro-resolver@0.48.3:
version "0.48.3"
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.48.3.tgz#3459c117f25a6d91d501eb1c81fdc98fcfea1cc0"
Expand Down