Add dependencies to package.json

Summary:
I extracted all the dependencies (using jest-haste-map) and copied them from the package.json in react-native to RNP. There is some duplication here for now but we can later go back and remove the duplicated dependencies from react-native that aren't needed there.

I also removed a mock file that hasn't been in use for a long time.

Reviewed By: jeanlauliac

Differential Revision: D4598155

fbshipit-source-id: 850b6dfa6fc2eec138ebdd7208cd34bee21f7927
This commit is contained in:
Christoph Pojer 2017-02-22 11:26:56 -08:00 committed by Facebook Github Bot
parent 2a65cc1963
commit 7e8ab0d237
2 changed files with 34 additions and 14 deletions

View File

@ -5,5 +5,39 @@
"repository": {
"type": "git",
"url": "git@github.com:facebook/react-native.git"
},
"dependencies": {
"absolute-path": "^0.0.0",
"async": "^2.0.1",
"babel-core": "^6.21.0",
"babel-generator": "^6.21.0",
"babel-plugin-external-helpers": "^6.18.0",
"babel-preset-fbjs": "^2.1.0",
"babel-preset-react-native": "^1.9.1",
"babel-register": "^6.18.0",
"babylon": "^6.14.1",
"chalk": "^1.1.1",
"core-js": "^2.2.2",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"fbjs": "^0.8.9",
"graceful-fs": "^4.1.3",
"image-size": "^0.3.5",
"imurmurhash": "^0.1.4",
"jest-haste-map": "18.0.0",
"joi": "^6.6.1",
"json-stable-stringify": "^1.0.1",
"json5": "^0.4.0",
"left-pad": "^1.1.3",
"lodash": "^4.16.6",
"mime-types": "2.1.11",
"mkdirp": "^0.5.1",
"request": "^2.79.0",
"rimraf": "^2.5.4",
"source-map": "^0.5.6",
"throat": "^3.0.0",
"uglify-js": "^2.6.2",
"worker-farm": "^1.3.1",
"write-file-atomic": "^1.2.0"
}
}

View File

@ -1,14 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
// Bug with Jest because we're going to the node_modules that is a sibling
// of what jest thinks our root (the dir with the package.json) should be.
module.exports = require.requireActual('q');