npm / npm/rfcs

[RRFC] Support for `workspace:` protocol (Yarn 2)

Open
#765 8 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
777
Forks
267
PR merge metrics
No merged PRs in 30d

Description

What / Why

Yarn 2 has a special URL protocol for packages that should be resolved within workspaces: https://yarnpkg.com/features/workspaces#workspace-ranges-workspace
Maybe it is related to a bug on Lerna.

When

  • n/a

Where

  • n/a

How

Try to parse workspace:xyz

Current Behavior
  • Throws the error Unsupported URL Type "workspace:": workspace:xyz
Expected Behavior
  • Outputs the version described at xyz/package.json.

Who

  • n/a

References

  • n/a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Yarn workspace-ranges documentation and reproduce parsing workspace:xyz in the package-manager entry point. Done means the protocol no longer raises the unsupported URL error and resolves the version described by xyz/package.json; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.