Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements Git Workspaces #1261

Merged
merged 10 commits into from
Apr 29, 2020
Merged

Implements Git Workspaces #1261

merged 10 commits into from
Apr 29, 2020

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Apr 27, 2020

What's the problem this PR addresses?

It's difficult to work with Git monorepos, since we can't easily install one specific package. Additionally, the current packing mechanism was causing projects to always be installed using Yarn, which isn't the right behavior: we should instead use whatever package manager the repository is configured to use (yes, even npm, sometimes 馃檪).

How did you fix it?

  • Workspaces can now be installed using the #workspace=name qualifier within the Git dependency. This can be added to existing range selectors (#commit=foo&workspace=name).

  • We now detect which package manager should be used, and use different packing workflow for each one. Of course, the Yarn 2 one is the best ... (no but seriously, because we need to run a full install for the two other projects, even if they don't have postinstall scripts).

Note that the git resolutions now use the #commit=hash format instead of the now legacy #commit:hash format. It shouldn't change much (both are accepted when read from the lockfile).

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.

None yet

1 participant