Skip to content

Conversation

@MaxBlack-dev
Copy link
Contributor

Description

Adds documentation and examples showing how to add one workspace as a dependency of another workspace using the workspace protocol.

Changes

  • Added a new section explaining how to use workspace:* protocol to add workspace dependencies
  • Included example command: npm install b@workspace:* -w a
  • Showed the resulting package.json entry
  • Explained that workspace: protocol links to local workspace instead of registry

Fixes

Closes #4742

Rationale

The workspaces documentation explained how to add registry dependencies to workspaces, but did not explain how to add one workspace as a dependency of another workspace. This is a common use case in monorepos where internal packages depend on each other.

Type of Change

Documentation enhancement

@MaxBlack-dev MaxBlack-dev requested a review from a team as a code owner November 19, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation] workspace dependencies

1 participant