Refine prod and dev deps
Summary: Move flipper local deps to prod deps, so yarn installs them later when we build a bundle Reviewed By: lblasa Differential Revision: D39475545 fbshipit-source-id: 5b61d15b45ee315c3b35d8e6836c114b90503b1a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a411fc6720
commit
ed93dfe978
@@ -8,8 +8,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fb-watchman": "2.0.1",
|
"@types/fb-watchman": "2.0.1",
|
||||||
"@types/node": "^17.0.31",
|
"@types/node": "^17.0.31"
|
||||||
"flipper-common": "0.0.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"reset": "rimraf lib *.tsbuildinfo",
|
"reset": "rimraf lib *.tsbuildinfo",
|
||||||
@@ -28,6 +27,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"envinfo": "^7.8.1",
|
"envinfo": "^7.8.1",
|
||||||
"fb-watchman": "^2.0.1",
|
"fb-watchman": "^2.0.1",
|
||||||
|
"flipper-common": "0.0.0",
|
||||||
"fs-extra": "^10.1.0"
|
"fs-extra": "^10.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "flipper-frontend-core",
|
"name": "flipper-frontend-core",
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "Exposes core functionality for Flipper frontends: Flipper Electron, Flipper Browser UI, Flipper Server Companion.",
|
"description": "Exposes core functionality for Flipper frontends: Flipper Electron, Flipper Browser UI, Flipper Server Companion.",
|
||||||
"repository": "facebook/flipper",
|
"repository": "facebook/flipper",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "flipper-server-companion",
|
"name": "flipper-server-companion",
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "Runs Flipper plugins on Flipper Server",
|
"description": "Runs Flipper plugins on Flipper Server",
|
||||||
"repository": "facebook/flipper",
|
"repository": "facebook/flipper",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "flipper-server-core",
|
"name": "flipper-server-core",
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "Flipper server connection SDK",
|
"description": "Flipper server connection SDK",
|
||||||
"repository": "facebook/flipper",
|
"repository": "facebook/flipper",
|
||||||
@@ -17,6 +16,8 @@
|
|||||||
"archiver": "^5.3.1",
|
"archiver": "^5.3.1",
|
||||||
"async-mutex": "^0.3.2",
|
"async-mutex": "^0.3.2",
|
||||||
"axios": "^0.26.0",
|
"axios": "^0.26.0",
|
||||||
|
"exit-hook": "^2.1.1",
|
||||||
|
"express": "^4.17.3",
|
||||||
"flipper-common": "0.0.0",
|
"flipper-common": "0.0.0",
|
||||||
"flipper-doctor": "0.0.0",
|
"flipper-doctor": "0.0.0",
|
||||||
"flipper-plugin-core": "0.0.0",
|
"flipper-plugin-core": "0.0.0",
|
||||||
@@ -24,9 +25,11 @@
|
|||||||
"flipper-server-companion": "0.0.0",
|
"flipper-server-companion": "0.0.0",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^10.1.0",
|
||||||
|
"http-proxy": "^1.18.1",
|
||||||
"invariant": "^2.2.4",
|
"invariant": "^2.2.4",
|
||||||
"js-base64": "^3.7.2",
|
"js-base64": "^3.7.2",
|
||||||
"lodash.memoize": "^4.1.2",
|
"lodash.memoize": "^4.1.2",
|
||||||
|
"memorystream": "^0.3.1",
|
||||||
"node-fetch": "2",
|
"node-fetch": "2",
|
||||||
"node-forge": "^0.10.0",
|
"node-forge": "^0.10.0",
|
||||||
"open": "^8.3.0",
|
"open": "^8.3.0",
|
||||||
@@ -60,11 +63,7 @@
|
|||||||
"@types/split2": "^3.2.1",
|
"@types/split2": "^3.2.1",
|
||||||
"@types/tmp": "^0.2.3",
|
"@types/tmp": "^0.2.3",
|
||||||
"@types/which": "^2.0.1",
|
"@types/which": "^2.0.1",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3"
|
||||||
"exit-hook": "^2.1.1",
|
|
||||||
"express": "^4.17.3",
|
|
||||||
"http-proxy": "^1.18.1",
|
|
||||||
"memorystream": "^0.3.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {},
|
"peerDependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -8,11 +8,7 @@
|
|||||||
"bin": "server.js",
|
"bin": "server.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": "https://github.com/facebook/flipper/issues",
|
"bugs": "https://github.com/facebook/flipper/issues",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
"devDependencies": {
|
|
||||||
"@types/express": "^4.17.13",
|
|
||||||
"@types/http-proxy": "^1.17.8",
|
|
||||||
"@types/node": "^17.0.31",
|
|
||||||
"chalk": "^4",
|
"chalk": "^4",
|
||||||
"exit-hook": "^2.1.1",
|
"exit-hook": "^2.1.1",
|
||||||
"express": "^4.17.3",
|
"express": "^4.17.3",
|
||||||
@@ -30,13 +26,18 @@
|
|||||||
"xdg-basedir": "^4",
|
"xdg-basedir": "^4",
|
||||||
"yargs": "^17.4.1"
|
"yargs": "^17.4.1"
|
||||||
},
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/express": "^4.17.13",
|
||||||
|
"@types/http-proxy": "^1.17.8",
|
||||||
|
"@types/node": "^17.0.31"
|
||||||
|
},
|
||||||
"peerDependencies": {},
|
"peerDependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"reset": "rimraf lib *.tsbuildinfo",
|
"reset": "rimraf lib *.tsbuildinfo",
|
||||||
"build": "tsc -b"
|
"build": "tsc -b"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**/*",
|
"lib/**/*",
|
||||||
"static/**/*",
|
"static/**/*",
|
||||||
"README.md",
|
"README.md",
|
||||||
"server.js"
|
"server.js"
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
"bugs": "https://github.com/facebook/flipper/issues",
|
"bugs": "https://github.com/facebook/flipper/issues",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.15.7",
|
"esbuild": "^0.15.7",
|
||||||
"flipper-babel-transformer": "0.0.0",
|
|
||||||
"flipper-plugin-lib": "0.0.0",
|
"flipper-plugin-lib": "0.0.0",
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^10.1.0",
|
||||||
"metro": "^0.70.2",
|
"metro": "^0.70.2",
|
||||||
|
|||||||
@@ -273,6 +273,8 @@ async function modifyPackageManifest(
|
|||||||
// not needed in public builds
|
// not needed in public builds
|
||||||
delete manifest.scripts;
|
delete manifest.scripts;
|
||||||
delete manifest.devDependencies;
|
delete manifest.devDependencies;
|
||||||
|
// TODO: Remove me later
|
||||||
|
delete manifest.dependencies;
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
path.join(buildFolder, 'package.json'),
|
path.join(buildFolder, 'package.json'),
|
||||||
JSON.stringify(manifest, null, ' '),
|
JSON.stringify(manifest, null, ' '),
|
||||||
|
|||||||
Reference in New Issue
Block a user