Skip to content

Conversation

@MarshallOfSound
Copy link

Description (What)

Yarn @ v4 supports a link:../path/to/thing syntax for installing another workspace as a dependency but via a symlink. By definition of this syntax these specifiers are always equal regardless of where they are found in the tree, and always match the local version.

Justification (Why)

Without this syntax support there is no way to use link: syntax without syncpack replacing it with specific version numbers which is then invalid as it results in copy-to-install behavior instead of the desired symlink behavior

How Can This Be Tested?

This PR has unit tests

@JamieMason
Copy link
Owner

Thanks a lot for this, really appreciate it. I'll take a look when I next work on syncpack 🎉

JamieMason pushed a commit that referenced this pull request Sep 14, 2025
@JamieMason
Copy link
Owner

JamieMason commented Sep 14, 2025

I've sorted the conflicts and this is in the dev branch at ade65308.

Whenever 14.0.0-alpha.22 is released this will in there, it'll be a week or so yet as there's some documentation I want to finish before merging.

Pushed to https://github.com/JamieMason/syncpack/commits/yarn-link-specifier/ and parked for the moment, I'm not ready to take on what this needs yet.

JamieMason pushed a commit that referenced this pull request Sep 20, 2025
JamieMason pushed a commit that referenced this pull request Sep 21, 2025
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.

2 participants