[RRFC] Support for `workspace:` protocol (Yarn 2)
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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