Summary: With esbuild bundling all plugins takes a couple of seconds instead of 3-5 minutes with metro. As a result, we can stop including plugins into Flipper's bundle for development and always bundle them separately. It reduces complexity of our build pipeline and makes the dev build work more like our prod build. It also allows us to stop bundling flipper-server code and just compile it instead. Reviewed By: lblasa Differential Revision: D39262048 fbshipit-source-id: c4da0f2ea2807015d98e0d070349c39b2118e189
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "flipper-pkg-lib",
|
|
"version": "0.0.0",
|
|
"description": "Library for building and publishing Flipper plugins",
|
|
"repository": "facebook/flipper",
|
|
"main": "lib/index.js",
|
|
"flipperBundlerEntry": "src",
|
|
"types": "lib/index.d.ts",
|
|
"license": "MIT",
|
|
"bugs": "https://github.com/facebook/flipper/issues",
|
|
"dependencies": {
|
|
"esbuild": "^0.15.7",
|
|
"flipper-babel-transformer": "0.0.0",
|
|
"flipper-plugin-lib": "0.0.0",
|
|
"fs-extra": "^10.1.0",
|
|
"metro": "^0.70.2",
|
|
"metro-cache": "^0.70.2",
|
|
"metro-minify-terser": "^0.70.2",
|
|
"npm-packlist": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fs-extra": "^9.0.13",
|
|
"@types/mock-fs": "^4.13.1",
|
|
"@types/node": "^17.0.31",
|
|
"@types/npm-packlist": "^1.1.2",
|
|
"flipper-test-utils": "0.0.0",
|
|
"mock-fs": "^5.1.2"
|
|
},
|
|
"scripts": {
|
|
"reset": "rimraf lib *.tsbuildinfo",
|
|
"build": "tsc -b",
|
|
"prepack": "yarn reset && yarn build"
|
|
},
|
|
"files": [
|
|
"lib/**/*"
|
|
],
|
|
"homepage": "https://github.com/facebook/flipper",
|
|
"keywords": [
|
|
"Flipper"
|
|
],
|
|
"author": "Facebook, Inc"
|
|
}
|