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

feat(workspaces): introduce new workspaces root selector #371

Closed
Tracked by #362
darcyclarke opened this issue Jun 14, 2021 · 1 comment
Closed
Tracked by #362

feat(workspaces): introduce new workspaces root selector #371

darcyclarke opened this issue Jun 14, 2021 · 1 comment
Assignees
Labels

Comments

@darcyclarke
Copy link
Contributor

darcyclarke commented Jun 14, 2021

Summary

  • Introduce new --include-workspace-root config
  • --workspaces becomes a trinary (ie. defaults to null)
Default:
  Command is ran under the context of the root project only
  Workspaces are used in node_modules if the name matches the required dependency

--workspaces
  Command is ran under the context of every workspace
  Command is not ran under the context fo the root project
  Workspaces are used in node_modules if the name matches the required dependency

--workspace x
  Command is ran under the context of workspace x
  Command is not ran under the context fo the root project
  Workspaces are used in node_modules if the name matches the required dependency


--workspace x --include-workspace-root
  Command is ran under the context of workspace x
  Command is also ran under the context of the root project
  Workspaces are used in node_modules if the name matches the required dependency


--no-workspaces
  Command is ran under the context of the root project only
  Workspaces are not used in node_modules

--no-workspaces --include-workspace-root
  Redundant

--no-workspaces --workspace x
  Throws an exception
@darcyclarke
Copy link
Contributor Author

Landed support in v8.1.0 - https://github.com/npm/cli/releases/tag/v8.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants