You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Potential missing or hard to find information on using workspaces #4800
This is a CLI Docs Problem, not another kind of Docs Problem.
This is a CLI Docs Problem.
Description of Problem
When running npm install using workspaces, common modules are installed in the root. There are some that I don't want this to happen to, but there seems to be no way or no documented way to achieve this.
Is this a feature issue or just not available in the documentation?
Potential Solution
Provide simple and clear instructions in workspace docs on how to exclude modules from being optimised into the root.
/ package.json => referencing the workspace sets inside workspaces but you should never use npm without the -w or -W flags from that dir
/node_modules => shared between all
/packages => contains all packages (source)
/workspaces/workspace_set_1
/workspaces/workspace_set_2
Activity
metawrap-dev commentedon May 3, 2022
I have located this discussion. npm/rfcs#375 For what I would assume is a common use-case, it's hard to find a simple answer.
metawrap-dev commentedon May 3, 2022
Also this npm/rfcs#287
frank-dspeed commentedon Aug 26, 2022
the concept is simple you should simply create