Multiple package.json files in one package

前端 未结 1 1138
醉梦人生
醉梦人生 2021-02-06 21:49

I have a site running on php that uses Node for a few development tasks. Currently, our team relies on puppet to install the node modules that we use for these development task

相关标签:
1条回答
  • 2021-02-06 22:24

    As far as I have seen, package.json deals with a single directory's dependencies (and a single instance of node_modules).

    Your best bet is to split your applications into separate directories.

    Barring that, you could just add all of the dependencies to a single package.json file. It will install into the node_modules folder and any app within that directory will have access to all of the installed modules.

    0 讨论(0)
提交回复
热议问题