From 79997f2b3872d4cb34584614cd18fbd7b86298bf Mon Sep 17 00:00:00 2001 From: Chaiwat Ekkaewnumchai Date: Wed, 8 Jul 2020 06:57:06 -0700 Subject: [PATCH] Change Template 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: D22411822 fbshipit-source-id: 3f22e3537f22f01d2d0208980e12da48c85d64f6 --- .eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintignore b/.eslintignore index 4252183a9..bd4250d10 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,3 +6,4 @@ dist website/build react-native/ReactNativeFlipperExample scripts/generate-changelog.js +scripts/facebook/templates/tsx