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: wait for promises to resolve before checking truthiness #56

Merged
merged 2 commits into from
May 8, 2023

Conversation

TylerBarnes
Copy link
Contributor

I think I introduced this bug before!

The .every here was always returning true because a Promise instance is truthy before it's resolved. So the wrong package manager was used in some cases

@equiman
Copy link
Member

equiman commented May 8, 2023

It was me trying to add compatibility for yarn Classic and Berry because need to check multiple files to know which version is using.

Thanks for the fix.

@equiman equiman added the bug Something isn't working label May 8, 2023
@equiman equiman merged commit 257df1b into deinsoftware:main May 8, 2023
@TylerBarnes TylerBarnes deleted the fix/lockfile-exists-prom branch May 8, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants