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: --lockfile-only in CI and with frozen-lockfile=true #4955

Merged
merged 2 commits into from Jun 30, 2022
Merged

Conversation

zkochan
Copy link
Member

@zkochan zkochan commented Jun 30, 2022

close #4951

@@ -269,7 +269,7 @@ export async function mutateModules (
!opts.fixLockfile &&
installsOnly &&
(
frozenLockfile ||
frozenLockfile && !opts.lockfileOnly ||
Copy link

Choose a reason for hiding this comment

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

is that expected to be written without brackets () around it? I didn't test anything, I'm just asking. I mean should it be (frozenLockfile && !opts.lockfileOnly)? If not then Prettier is probably to blame here, it's confusing when it's on 1 line

Copy link
Member Author

Choose a reason for hiding this comment

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

It will work without brackets just fine. && has bigger priority than ||

Copy link

Choose a reason for hiding this comment

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

ahh ok I forgot about that, cool 👍🏻

@zkochan zkochan requested a review from a team June 30, 2022 00:59
@zkochan zkochan merged commit b55b378 into main Jun 30, 2022
@zkochan zkochan deleted the fix/4951 branch June 30, 2022 08:00
This was referenced Jun 30, 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
3 participants