Skip to content

Conversation

@jeremy-daley-kr
Copy link
Contributor

@jeremy-daley-kr jeremy-daley-kr commented Apr 30, 2024

The current documentation overview for Constraints reads somewhat like a sales pitch, rather than documentation. It's a bit wordy, and kind of grammatically incorrect/confusing. It might be more beneficial to mention "enforcement of workspace package rules" as the main point, rather than towards the end of the description. Additionally, constraints can be used for a large number of needs that are not necessarily "basic" ones.

I'd be fine with expanding the example list, but being sure to specify that these are just examples of how constraints are commonly used. They're not the limit of the capability.

What's the problem this PR addresses?

Unclear documentation.

How did you fix it?

Made it a bit more clear and simple.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.
The current documentation sounds somewhat like a sales pitch, rather than documentation. It's a bit wordy, kind of confusing, and seems to "constrain" their purpose to a small set of usage. Constraints can be used for a large number of needs that are not necessarily "basic" ones.
@arcanis arcanis merged commit df5d1c2 into yarnpkg:master May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants