Sharing a large catalog of node modules between React Native projects

Ok, Starting with actionNative, I noticed that the node_modules folder is huge. 210Mb to be exact. How can I share it between projects with the directory structure on these lines:

  • Reactative
    • node_modules
    • awesomeProject1
    • awesomeProject2

In bower, I know that there is a bower.rc file where you can configure the bower_components path. Is there an equivalent in package.json and is this good practice overall for a ReactNative project?

PS I know that currently the hard drives are exceptionally large, but somehow I managed to fill my SSD drive almost at full capacity.

+4
source share

All Articles