yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.37k stars 1.1k forks source link

Adds support for cwd in the git protocol #6362

Closed arcanis closed 2 months ago

arcanis commented 3 months ago

What's the problem this PR addresses?

The git: protocol supports cloning workspaces from a given repository, but only if the project to install is at the root of the repository. It may not be the case when the project contains libraries for multiple languages.

How did you fix it?

A new cwd parameter lets users pick a subpath to use when packing the project. It can be used on its own, or in tandem with the workspace specifier.

Checklist