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

[rush-lib] Fix an edge case for pnpm-sync where .pnpm folder is not exist but it is still a valid pnpm install #4718

Merged
merged 3 commits into from
May 16, 2024

Conversation

g-chao
Copy link
Contributor

@g-chao g-chao commented May 16, 2024

Summary

When there is no any dependencies in a package.json, the pnpm install will only generate the pnpm-lock.yaml, but not .pnpm folder.
Add existence check for pnpm-lock.yaml file and .pnpm folder before calling pnpm-sync APIs

How it was tested

Tested with Rushstack repos manually.

Impacted documentation

N/A

@octogonz octogonz enabled auto-merge May 16, 2024 00:46
@octogonz octogonz merged commit 6e809f8 into microsoft:main May 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants