question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for the workspace protocol

See original GitHub issue

Affected Packages

Problem

Both pnpm and Yarn v2 support workspace ranges.

When I ran changeset status on the pnpm monorepo, I got lots of the following errors:

Package "@pnpm/tarball-fetcher" must depend on the current version of "@pnpm/error": "1.2.0" vs "workspace:1.2.0"

Workspace ranges are really useful in monorepos, so I think it is crucial to support them. And it shouldn’t be hard to support. You could probably just strip the workspace: part. Only workspace:* is a special case. Before publish, it is replaced with the current version present in the monorepo.

Proposed solution

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Andaristcommented, Mar 31, 2020

I’ll take a look into adding support for this in the following days.

1reaction
zkochancommented, Mar 30, 2020

I don’t think so. This was added by @arcanis to Yarn, I liked the idea and implemented the same in pnpm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for the workspace protocol · Issue #307 - GitHub
Workspace ranges are really useful in monorepos, so I think it is crucial to support them. And it shouldn't be hard to support....
Read more >
Protocols for Amazon WorkSpaces
Learn about the features of the two protocols supported by Amazon WorkSpaces: PCoIP and WorkSpaces Streaming Protocol (WSP).
Read more >
Protocols | Yarn - Package Manager
An in-depth guide to Yarn's various protocols.
Read more >
Workspace | pnpm
Workspace. pnpm has built-in support for monorepositories (AKA multi-package repositories, multi-project repositories, or monolithic repositories).
Read more >
Workshop Studio - Getting Started with Amazon WorkSpaces
Amazon WorkSpaces supports two protocols: PCoIP and WorkSpaces Streaming Protocol (WSP). The protocol that you choose depends on several factors, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found