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

Yarn compliance #24

Closed
wants to merge 7 commits into from
Closed

Yarn compliance #24

wants to merge 7 commits into from

Conversation

kanthesha
Copy link
Contributor

Since the module template uses Yarn v3, we want all projects to conform to the same thing. So, minimally, for this ticket, we want this tool to be able to look a project and verify whether it is using the same version of Yarn as is specified in the module template.

There are several ways to check that the Yarn version conforms, though. If this is the case for a project, then these things will be true:

  • The packageManager field in package.json should exist
  • The value of the packageManager field should match the same value as the module template
  • .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs should exist, and its contents should match what's in the module template
  • .yarn/plugins/@yarnpkg/plugin-constraints.cjs should exist, and its contents should match what's in the module template
  • .yarn/releases/yarn-3.2.1.cjs should exist, and its contents should match what's in the module template
  • The .yarnrc.yml file should exist, and the contents of this file should match the same file in the module template
  • The README should include a line - Install Yarn v3

References

@mcmire
Copy link
Collaborator

mcmire commented Dec 22, 2023

Superseded by #39.

@mcmire mcmire closed this Dec 22, 2023
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