From 13edf6da2b8090c1b0bfa5fde4354fbfb24e6b4e Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Wed, 22 Feb 2017 11:26:56 -0800 Subject: [PATCH] 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 --- packager/package.json | 34 +++++++++++++++++++++++ packager/src/JSTransformer/__mocks__/q.js | 14 ---------- 2 files changed, 34 insertions(+), 14 deletions(-) delete mode 100644 packager/src/JSTransformer/__mocks__/q.js diff --git a/packager/package.json b/packager/package.json index 60086ef1b..94ab30c0c 100644 --- a/packager/package.json +++ b/packager/package.json @@ -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" } } diff --git a/packager/src/JSTransformer/__mocks__/q.js b/packager/src/JSTransformer/__mocks__/q.js deleted file mode 100644 index 7ee0beac5..000000000 --- a/packager/src/JSTransformer/__mocks__/q.js +++ /dev/null @@ -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');