2015-02-20 04:10:52 +00:00
{
2015-03-23 03:32:49 +00:00
"name" : "react-native" ,
2016-03-29 19:32:57 +00:00
"version" : "1000.0.0" ,
2015-03-28 05:18:47 +00:00
"description" : "A framework for building native apps using React" ,
2015-05-28 18:48:58 +00:00
"license" : "BSD-3-Clause" ,
2015-02-20 04:10:52 +00:00
"repository" : {
"type" : "git" ,
"url" : "git@github.com:facebook/react-native.git"
} ,
2015-10-09 21:42:33 +00:00
"engines" : {
"node" : ">=4"
} ,
2015-02-20 04:10:52 +00:00
"jest" : {
2016-09-02 12:54:18 +00:00
"automock" : true ,
2016-11-15 14:48:09 +00:00
"transform" : {
2016-12-19 12:30:39 +00:00
".*" : "./jest/preprocessor.js"
2016-11-15 14:48:09 +00:00
} ,
2016-09-02 12:54:18 +00:00
"setupFiles" : [
2016-12-19 12:30:39 +00:00
"./jest/setup.js"
2016-09-02 12:54:18 +00:00
] ,
"timers" : "fake" ,
2015-10-27 00:01:41 +00:00
"moduleNameMapper" : {
2016-11-04 12:40:26 +00:00
"^React$" : "<rootDir>/Libraries/react-native/React.js" ,
2015-10-27 00:01:41 +00:00
"^[./a-zA-Z0-9$_-]+\\.png$" : "RelativeImageStub"
} ,
2015-02-20 04:10:52 +00:00
"testPathIgnorePatterns" : [
2017-02-10 21:39:36 +00:00
"Libraries/Renderer" ,
2016-09-10 00:32:20 +00:00
"/node_modules/" ,
2016-09-14 21:16:35 +00:00
"/website/" ,
2016-11-19 02:25:02 +00:00
"local-cli/templates/"
2015-02-20 04:10:52 +00:00
] ,
2016-02-18 08:12:42 +00:00
"haste" : {
"defaultPlatform" : "ios" ,
"providesModuleNodeModules" : [
2016-11-15 12:59:12 +00:00
"react-native"
2016-02-18 08:12:42 +00:00
] ,
2016-03-03 12:15:15 +00:00
"platforms" : [
"ios" ,
"android"
]
2016-02-18 08:12:42 +00:00
} ,
2016-01-08 14:51:45 +00:00
"modulePathIgnorePatterns" : [
2016-07-28 05:02:42 +00:00
"Libraries/react-native/" ,
2016-11-15 12:59:12 +00:00
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/" ,
2016-03-02 12:27:13 +00:00
"node_modules/react/node_modules/fbjs/" ,
2016-01-08 14:51:45 +00:00
"node_modules/react/lib/ReactDOM.js" ,
"node_modules/fbjs/lib/Map.js" ,
"node_modules/fbjs/lib/Promise.js" ,
"node_modules/fbjs/lib/fetch.js" ,
"node_modules/fbjs/lib/ErrorUtils.js" ,
"node_modules/fbjs/lib/URI.js" ,
"node_modules/fbjs/lib/Deferred.js" ,
"node_modules/fbjs/lib/PromiseMap.js" ,
"node_modules/fbjs/lib/UserAgent.js" ,
"node_modules/fbjs/lib/areEqual.js" ,
"node_modules/fbjs/lib/base62.js" ,
"node_modules/fbjs/lib/crc32.js" ,
"node_modules/fbjs/lib/everyObject.js" ,
"node_modules/fbjs/lib/fetchWithRetries.js" ,
"node_modules/fbjs/lib/filterObject.js" ,
"node_modules/fbjs/lib/flattenArray.js" ,
"node_modules/fbjs/lib/forEachObject.js" ,
"node_modules/fbjs/lib/isEmpty.js" ,
"node_modules/fbjs/lib/nullthrows.js" ,
"node_modules/fbjs/lib/removeFromArray.js" ,
"node_modules/fbjs/lib/resolveImmediate.js" ,
"node_modules/fbjs/lib/someObject.js" ,
"node_modules/fbjs/lib/sprintf.js" ,
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js" ,
"node_modules/jest-cli" ,
2016-03-02 12:27:13 +00:00
"node_modules/react/dist" ,
2016-05-20 20:54:57 +00:00
"node_modules/fbjs/.*/__mocks__/" ,
"node_modules/fbjs/node_modules/" ,
2016-03-10 16:49:10 +00:00
"<rootDir>/website/"
2016-01-08 14:51:45 +00:00
] ,
2015-02-25 20:57:33 +00:00
"unmockedModulePathPatterns" : [
2017-02-10 21:39:36 +00:00
"node_modules/react/" ,
"Libraries/Renderer" ,
2015-06-24 18:01:09 +00:00
"promise" ,
2016-02-16 06:33:11 +00:00
"source-map" ,
2016-07-29 18:00:08 +00:00
"fastpath" ,
"denodeify" ,
2016-09-14 17:24:39 +00:00
"fbjs" ,
"sinon"
2015-02-19 21:11:11 +00:00
]
2015-02-20 04:10:52 +00:00
} ,
2017-02-25 18:21:09 +00:00
"main" : "Libraries/react-native/react-native-implementation.js" ,
2015-03-26 01:18:41 +00:00
"files" : [
2016-10-31 19:52:30 +00:00
".flowconfig" ,
2016-02-09 14:36:30 +00:00
"android" ,
2015-03-26 01:18:41 +00:00
"cli.js" ,
2016-10-31 19:52:30 +00:00
"flow" ,
2015-03-26 01:18:41 +00:00
"init.sh" ,
2017-03-27 18:52:07 +00:00
"ios-cc.sh" ,
2017-02-01 22:10:43 +00:00
"ios-install-third-party.sh" ,
2016-10-31 19:52:30 +00:00
"jest-preset.json" ,
"jest" ,
"lib" ,
2017-01-06 14:02:36 +00:00
"setupBabel.js" ,
2016-10-31 19:52:30 +00:00
"Libraries" ,
2015-03-26 01:18:41 +00:00
"LICENSE" ,
2016-10-31 19:52:30 +00:00
"local-cli" ,
"packager" ,
2015-03-28 05:18:47 +00:00
"PATENTS" ,
2016-10-31 19:52:30 +00:00
"react.gradle" ,
"React.podspec" ,
"React" ,
"ReactAndroid" ,
"ReactCommon" ,
"README.md"
2015-03-26 01:18:41 +00:00
] ,
2015-02-20 04:10:52 +00:00
"scripts" : {
2016-07-28 05:02:42 +00:00
"test" : "jest" ,
2016-03-03 12:15:15 +00:00
"flow" : "flow" ,
2015-12-22 18:32:20 +00:00
"lint" : "eslint Examples/ Libraries/" ,
2017-02-24 18:48:10 +00:00
"start" : "/usr/bin/env bash -c './packager/packager.sh \"$@\" || true' --" ,
"test-android-setup" : "docker pull containership/android-base:latest" ,
"test-android-build" : "docker build -t react/android -f ContainerShip/Dockerfile.android ." ,
"test-android-run-instrumentation" : "docker run --cap-add=SYS_ADMIN -it react/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh" ,
"test-android-run-unit" : "docker run --cap-add=SYS_ADMIN -it react/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh" ,
2017-04-12 23:23:43 +00:00
"test-android-run-e2e" : "docker run --privileged -it react/android bash ContainerShip/scripts/run-ci-e2e-tests.sh --android --js" ,
2017-02-24 18:48:10 +00:00
"test-android-all" : "npm run test-android-build && npm run test-android-run-unit && npm run test-android-run-instrumentation && npm run test-android-run-e2e" ,
"test-android-instrumentation" : "npm run test-android-build && npm run test-android-run-instrumentation" ,
"test-android-unit" : "npm run test-android-build && npm run test-android-run-unit" ,
"test-android-e2e" : "npm run test-android-build && npm run test-android-run-e2e"
2015-02-20 04:10:52 +00:00
} ,
2015-10-26 18:42:53 +00:00
"bin" : {
"react-native" : "local-cli/wrong-react-native.js"
} ,
2016-02-09 23:37:28 +00:00
"peerDependencies" : {
2017-03-27 23:54:08 +00:00
"react" : "16.0.0-alpha.6"
2016-02-09 23:37:28 +00:00
} ,
2015-02-20 04:10:52 +00:00
"dependencies" : {
2015-09-11 08:23:38 +00:00
"absolute-path" : "^0.0.0" ,
2015-11-05 11:31:11 +00:00
"art" : "^0.10.0" ,
2017-05-03 17:36:51 +00:00
"async" : "^2.4.0" ,
2017-04-23 14:42:37 +00:00
"babel-core" : "^6.24.1" ,
"babel-generator" : "^6.24.1" ,
2017-02-16 19:03:27 +00:00
"babel-plugin-external-helpers" : "^6.18.0" ,
"babel-plugin-syntax-trailing-function-commas" : "^6.20.0" ,
packager: introducing async/await, return of the yarn
Summary:
The first time I tried to commit this changeset, it was causing many new packages to be installed, because the dependency would depend on newer versions that what we have installed. So, I had made a diff so upgrade all the babel packages. Unfortunately this caused some problem as the newer versions of Babel are more strict on some syntaxes. Of course, these have to be addressed, but I don't want this changeset to be coupled with Babel upgrades and the issues that arise from it.
So instead, I decided to install the slightly older version of the async-to-generator module. At first I tried with just doing:
yarn add babel-plugin-transform-async-to-generator@6.16.0
But, `yarn` is stubborn: because this module depends on a caret version of `babel-helper-remap-async-to-generator`, it installs the very last version of it, that itself needs more recent versions of other Babel modules. So, instead, I add to install a slightly older version of the dependency manually, then then the plugin:
yarn add babel-helper-remap-async-to-generator@6.16.0
yarn add babel-plugin-transform-async-to-generator@6.16.0
This allows us to have a `yarn.lock` with only a minimal amount of changes, and uncouple this change from any Babel upgrades. Because we only have a few new modules, the `node_modules` folder also stays the same, 133M, and it gives us confidence this will not cause significant startup time regressions.
Reviewed By: cpojer
Differential Revision: D4578733
fbshipit-source-id: deb0f720b895b7196aaf432adec3e56f18663940
2017-02-20 16:35:57 +00:00
"babel-plugin-transform-async-to-generator" : "6.16.0" ,
2017-02-16 19:03:27 +00:00
"babel-plugin-transform-flow-strip-types" : "^6.21.0" ,
"babel-plugin-transform-object-rest-spread" : "^6.20.2" ,
"babel-polyfill" : "^6.20.0" ,
2016-10-22 13:30:43 +00:00
"babel-preset-es2015-node" : "^6.1.1" ,
2017-05-02 23:01:09 +00:00
"babel-preset-fbjs" : "^2.1.2" ,
2017-01-03 18:28:53 +00:00
"babel-preset-react-native" : "^1.9.1" ,
2017-04-23 14:42:37 +00:00
"babel-register" : "^6.24.1" ,
"babel-runtime" : "^6.23.0" ,
"babel-traverse" : "^6.24.1" ,
"babel-types" : "^6.24.1" ,
"babylon" : "^6.17.0" ,
2016-09-20 12:41:29 +00:00
"base64-js" : "^1.1.2" ,
2015-09-11 08:23:38 +00:00
"bser" : "^1.0.2" ,
"chalk" : "^1.1.1" ,
2016-07-30 15:59:16 +00:00
"commander" : "^2.9.0" ,
2017-02-27 18:44:28 +00:00
"concat-stream" : "^1.6.0" ,
2015-09-11 08:23:38 +00:00
"connect" : "^2.8.3" ,
2016-04-12 14:31:14 +00:00
"core-js" : "^2.2.2" ,
2017-04-20 02:49:30 +00:00
"create-react-class" : "^15.5.2" ,
2015-09-11 08:23:38 +00:00
"debug" : "^2.2.0" ,
2016-08-12 18:46:04 +00:00
"denodeify" : "^1.2.1" ,
2017-05-03 16:32:47 +00:00
"errno" : ">=0.1.1 <0.2.0-0" ,
2015-10-01 19:25:28 +00:00
"event-target-shim" : "^1.0.5" ,
2017-02-28 01:19:00 +00:00
"fbjs" : "~0.8.9" ,
2016-06-02 18:38:01 +00:00
"fbjs-scripts" : "^0.7.0" ,
2017-02-20 16:36:01 +00:00
"form-data" : "^2.1.1" ,
2017-03-07 01:09:36 +00:00
"fs-extra" : "^1.0.0" ,
2017-03-30 23:12:01 +00:00
"glob" : "^7.1.1" ,
2016-05-04 20:57:38 +00:00
"graceful-fs" : "^4.1.3" ,
2015-09-11 08:23:38 +00:00
"image-size" : "^0.3.5" ,
2016-11-08 11:30:24 +00:00
"imurmurhash" : "^0.1.4" ,
2016-06-03 16:05:14 +00:00
"inquirer" : "^0.12.0" ,
2017-02-24 16:17:51 +00:00
"jest-haste-map" : "19.0.0" ,
2015-09-11 08:23:38 +00:00
"joi" : "^6.6.1" ,
2016-02-15 14:57:26 +00:00
"json-stable-stringify" : "^1.0.1" ,
2015-11-14 11:23:46 +00:00
"json5" : "^0.4.0" ,
2016-11-24 17:56:30 +00:00
"left-pad" : "^1.1.3" ,
2016-11-06 09:26:15 +00:00
"lodash" : "^4.16.6" ,
2016-06-03 16:05:14 +00:00
"mime" : "^1.3.4" ,
2016-08-12 18:46:04 +00:00
"mime-types" : "2.1.11" ,
"minimist" : "^1.2.0" ,
2015-12-29 17:10:22 +00:00
"mkdirp" : "^0.5.1" ,
2015-10-19 21:58:38 +00:00
"node-fetch" : "^1.3.3" ,
2016-06-03 16:05:14 +00:00
"npmlog" : "^2.0.4" ,
2015-10-23 18:28:48 +00:00
"opn" : "^3.0.2" ,
2015-09-11 08:23:38 +00:00
"optimist" : "^0.6.1" ,
2016-06-03 16:05:14 +00:00
"plist" : "^1.2.0" ,
2017-03-09 22:22:17 +00:00
"pretty-format" : "^4.2.1" ,
2016-01-07 17:30:14 +00:00
"promise" : "^7.1.1" ,
2017-04-21 20:13:09 +00:00
"prop-types" : "^15.5.8" ,
2016-04-14 13:40:54 +00:00
"react-clone-referenced-element" : "^1.0.1" ,
2017-02-14 21:53:21 +00:00
"react-devtools-core" : "^2.0.8" ,
2015-09-11 08:23:38 +00:00
"react-timer-mixin" : "^0.13.2" ,
2016-03-12 00:27:18 +00:00
"react-transform-hmr" : "^1.0.4" ,
2015-09-11 08:23:38 +00:00
"rebound" : "^0.0.13" ,
2017-02-16 19:03:27 +00:00
"regenerator-runtime" : "^0.9.5" ,
2016-11-24 17:56:30 +00:00
"request" : "^2.79.0" ,
2016-11-08 11:30:24 +00:00
"rimraf" : "^2.5.4" ,
2016-08-11 00:18:57 +00:00
"sane" : "~1.4.1" ,
2015-12-29 17:10:22 +00:00
"semver" : "^5.0.3" ,
2016-11-04 19:56:39 +00:00
"shell-quote" : "1.6.1" ,
2016-09-26 16:02:34 +00:00
"source-map" : "^0.5.6" ,
2015-09-11 08:23:38 +00:00
"stacktrace-parser" : "^0.1.3" ,
2016-01-08 16:34:52 +00:00
"temp" : "0.8.3" ,
2016-10-14 19:06:30 +00:00
"throat" : "^3.0.0" ,
2017-03-22 12:38:21 +00:00
"uglify-js" : "2.7.5" ,
2016-08-12 18:46:04 +00:00
"whatwg-fetch" : "^1.0.0" ,
2015-09-11 08:23:38 +00:00
"wordwrap" : "^1.0.0" ,
2016-11-08 11:30:24 +00:00
"write-file-atomic" : "^1.2.0" ,
2016-06-22 17:33:01 +00:00
"ws" : "^1.1.0" ,
2017-03-30 23:12:02 +00:00
"xcode" : "^0.9.1" ,
2016-06-03 16:05:14 +00:00
"xmldoc" : "^0.4.0" ,
2017-02-27 18:44:28 +00:00
"xpipe" : "^1.0.5" ,
2017-05-03 16:32:47 +00:00
"xtend" : ">=4.0.0 <4.1.0-0" ,
2016-12-07 18:28:32 +00:00
"yargs" : "^6.4.0"
2015-02-20 04:10:52 +00:00
} ,
"devDependencies" : {
2017-04-23 14:42:37 +00:00
"babel-eslint" : "^7.2.3" ,
2016-11-04 12:40:25 +00:00
"eslint" : "^3.8.1" ,
2017-04-20 02:49:30 +00:00
"eslint-config-fbjs" : "^1.1.1" ,
2016-11-04 12:40:25 +00:00
"eslint-plugin-babel" : "^3.3.0" ,
"eslint-plugin-flowtype" : "^2.20.0" ,
"eslint-plugin-react" : "^6.4.1" ,
2017-04-28 00:04:53 +00:00
"flow-bin" : "^0.45.0" ,
2017-02-24 16:17:51 +00:00
"jest" : "19.0.2" ,
"jest-repl" : "19.0.2" ,
2017-04-26 18:25:48 +00:00
"jest-runtime" : "^19.0.3" ,
2016-07-30 15:59:16 +00:00
"mock-fs" : "^3.11.0" ,
2017-03-27 23:54:08 +00:00
"react" : "16.0.0-alpha.6" ,
"react-test-renderer" : "16.0.0-alpha.6" ,
2016-09-14 17:24:39 +00:00
"shelljs" : "0.6.0" ,
2016-12-05 16:36:07 +00:00
"sinon" : "^2.0.0-pre.2"
2015-02-20 04:10:52 +00:00
}
}