Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Potential missing or hard to find information on using workspaces #4800

Open
2 tasks done
metawrap-dev opened this issue Apr 25, 2022 · 3 comments
Open
2 tasks done
Labels
Documentation documentation related issue Needs Triage needs review for next steps

Comments

@metawrap-dev
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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.

Affected URL

No response

@metawrap-dev metawrap-dev added Documentation documentation related issue Needs Triage needs review for next steps labels Apr 25, 2022
@metawrap-dev
Copy link
Author

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
Copy link
Author

Also this npm/rfcs#287

@frank-dspeed
Copy link

frank-dspeed commented Aug 26, 2022

the concept is simple you should simply create

/ 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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation documentation related issue Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

2 participants