Check that all dependencies provided by Flipper core are specified as peers in plugins
Summary: This is a guard to ensure all Flipper built-in packages are declared as peer dependencies. It also removes all of them from nested node_modules after installation to be 100% sure they always loaded from the root folder, because e.g. react can be still installed as a transitive dependency even it is not declared as dependency directly. Reviewed By: passy Differential Revision: D27040267 fbshipit-source-id: 1e315a6b280b36ab20778ee261aa386b51d9f964
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4d3e631ce6
commit
e7c5a5cc93
@@ -10,6 +10,18 @@
|
||||
"fs-extra": "^9.0.1",
|
||||
"p-map": "^4.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"flipper": "*",
|
||||
"flipper-plugin": "*",
|
||||
"antd": "*",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"@emotion/styled": "*",
|
||||
"@ant-design/icons": "*",
|
||||
"@types/react": "*",
|
||||
"@types/react-dom": "*",
|
||||
"@types/node": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "../ts-node ./postinstall.ts"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user