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

Detect yarn version to dynamically not add deprecated flags #1252

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

jagonzalr
Copy link
Contributor

What did you implement:

Closes #642

How did you implement it:

This is an upgrade to a previous PR of mine.

The package can now detect the Yarn version to dynamically use the flags --frozen-lockfile or --immutable depending if running v1.x (classic) or v.2x, v3.x (modern).

If will also dynamically avoid injecting the flag --non-interactive even if you don't disable it on the serverless.yml file.

How can we verify it:

npm run test

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@jagonzalr jagonzalr force-pushed the detect-yarn-2-or-above branch from 983c2d2 to 8d76b02 Compare October 13, 2022 15:17
Copy link
Member

@vicary vicary left a comment

Choose a reason for hiding this comment

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

Allow my nitpicking. Just a rename and we're good to go!

lib/packagers/yarn.js Outdated Show resolved Hide resolved
lib/packagers/yarn.js Outdated Show resolved Hide resolved
tests/packagers/yarn.test.js Outdated Show resolved Hide resolved
@j0k3r j0k3r added this to the 5.10.1 milestone Oct 13, 2022
Copy link
Member

@j0k3r j0k3r left a comment

Choose a reason for hiding this comment

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

Looks great, you can squash 👍

@jagonzalr jagonzalr force-pushed the detect-yarn-2-or-above branch from b947ab1 to 1582a2e Compare October 14, 2022 09:37
@jagonzalr jagonzalr force-pushed the detect-yarn-2-or-above branch from 1582a2e to eb892ec Compare October 14, 2022 09:46
@jagonzalr
Copy link
Contributor Author

Looks great, you can squash 👍

Done @j0k3r @vicary

@j0k3r
Copy link
Member

j0k3r commented Oct 14, 2022

Good job @jagonzalr 👏🏼

@j0k3r j0k3r merged commit ffefe00 into serverless-heaven:master Oct 14, 2022
@j0k3r j0k3r mentioned this pull request Nov 22, 2022
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.

Support yarn 2 version
3 participants