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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support globs pattern in yarn workspaces definitions #1507

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

lili2311
Copy link
Contributor

@lili2311 lili2311 commented Nov 3, 2020

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Yarn workspaces patterns also support globs pattern, update the matching to cover this too.

The workspaces field is an array containing the paths to each workspace. Since it might be tedious to keep track of each of them, this field also accepts glob patterns! For example, Babel reference all of their packages through a single packages/* directive.
https://classic.yarnpkg.com/en/docs/workspaces/

Also added a failing test to show a deep globs pattern in workspaces definitions was not supported until the fix

@lili2311 lili2311 requested review from a team as code owners November 3, 2020 18:29
@ghost ghost requested review from admons and dtrunley-snyk November 3, 2020 18:29
@lili2311 lili2311 force-pushed the fix/support-globs-pattern-yarn-workspaces branch 2 times, most recently from 0b6d590 to 32699fe Compare November 3, 2020 18:38
@lili2311 lili2311 force-pushed the fix/support-globs-pattern-yarn-workspaces branch from 32699fe to 5554acf Compare November 3, 2020 18:39
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2020

Expected release notes (by @lili2311)

fixes:
support globs pattern in yarn workspaces definitions (5554acf)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

@@ -1,7 +1,8 @@
{
"private": true,
"workspaces": [
"packages/*"
"packages/*",
"libs/**/*"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

globs pattern here!

@lili2311 lili2311 merged commit cb5beb9 into master Nov 4, 2020
@lili2311 lili2311 deleted the fix/support-globs-pattern-yarn-workspaces branch November 4, 2020 09:18
@snyksec
Copy link

snyksec commented Nov 4, 2020

🎉 This PR is included in version 1.424.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants