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
@@ -21,8 +21,5 @@
|
||||
"devDependencies": {
|
||||
"rimraf": "^3.0.2",
|
||||
"patch-package": "^6.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "rimraf ./node_modules/react ./node_modules/react-dom ./node_modules/@types/react ./node_modules/@types/react-dom"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user