Files
flipper/desktop/plugins/reactdevtools/package.json
Chaiwat Ekkaewnumchai 9e83e93662 Move Static Fields to package.json: reactdevtools
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: mweststrate

Differential Revision: D22411845

fbshipit-source-id: b6f043e74358a9a66d5d466a17252820d712b71c
2020-07-08 03:14:17 -07:00

24 lines
526 B
JSON

{
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-react-devtools",
"id": "React",
"version": "0.49.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",
"keywords": [
"flipper-plugin"
],
"dependencies": {
"address": "^1.1.2",
"get-port": "^5.0.0",
"react-devtools-core": "^4.6.0"
},
"title": "React DevTools",
"icon": "app-react",
"bugs": {
"email": "danielbuechele@fb.com"
},
"devDependencies": {}
}