I have a project that has a submodule which also has a submodule, each of them (root & submodule_1 & submodule_2) have a package.json
.
Here is how I scaffolded my project :
|root
----|node_modules
----|package.json
----|someFolder
----|submodule_1
-------- |package.json
-------- |someFolder
-------- |submodule_2
------------ |package.json
------------ |someFolder
Is it possible to precise to npm to install each dependencies in the root node_modules
? I don’t want submodule_1 and submodule_2 to be dependencies, I just want the packages.json to be installed in the root node_modules
.
If it is possible, how can I achieve this ?
Thanks for your help