Skip to content

[Documentation] workspace dependencies #4742

@xenoterracide

Description

@xenoterracide

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

sorry if this is the wrong repo

Reading https://docs.npmjs.com/cli/v8/using-npm/workspaces#adding-dependencies-to-a-workspace

there's no real explanation of how to add a workspace as a dependency of another workspace

Expected Behavior

Documentation and examples of how to add regular and dev dependencies from one workspace to another, also a discussion of resolution order and wildcards.

Steps To Reproduce

Read https://docs.npmjs.com/cli/v8/using-npm/workspaces#adding-dependencies-to-a-workspace

Environment

❯ node --version && npm --version
v16.14.0
8.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issueRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions